Skip to content

Commit 69efa9f

Browse files
danbevMylesBorins
authored andcommitted
src: remove node namespace qualifiers
This commit removes unneccessary node namespace qualifiers in node.cc for consistency. PR-URL: #18962 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
1 parent f876887 commit 69efa9f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/node.cc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ using v8::Undefined;
165165
using v8::V8;
166166
using v8::Value;
167167

168-
using AsyncHooks = node::Environment::AsyncHooks;
168+
using AsyncHooks = Environment::AsyncHooks;
169169

170170
static bool print_eval = false;
171171
static bool force_repl = false;
@@ -266,7 +266,7 @@ double prog_start_time;
266266
static Mutex node_isolate_mutex;
267267
static v8::Isolate* node_isolate;
268268

269-
node::DebugOptions debug_options;
269+
DebugOptions debug_options;
270270

271271
static struct {
272272
#if NODE_USE_V8_PLATFORM
@@ -304,7 +304,7 @@ static struct {
304304

305305
#if HAVE_INSPECTOR
306306
bool StartInspector(Environment *env, const char* script_path,
307-
const node::DebugOptions& options) {
307+
const DebugOptions& options) {
308308
// Inspector agent can't fail to start, but if it was configured to listen
309309
// right away on the websocket port and fails to bind/etc, this will return
310310
// false.
@@ -337,7 +337,7 @@ static struct {
337337
void DrainVMTasks(Isolate* isolate) {}
338338
void CancelVMTasks(Isolate* isolate) {}
339339
bool StartInspector(Environment *env, const char* script_path,
340-
const node::DebugOptions& options) {
340+
const DebugOptions& options) {
341341
env->ThrowError("Node compiled with NODE_USE_V8_PLATFORM=0");
342342
return true;
343343
}
@@ -1101,9 +1101,9 @@ Local<Value> WinapiErrnoException(Isolate* isolate,
11011101

11021102
void* ArrayBufferAllocator::Allocate(size_t size) {
11031103
if (zero_fill_field_ || zero_fill_all_buffers)
1104-
return node::UncheckedCalloc(size);
1104+
return UncheckedCalloc(size);
11051105
else
1106-
return node::UncheckedMalloc(size);
1106+
return UncheckedMalloc(size);
11071107
}
11081108

11091109
namespace {
@@ -3841,7 +3841,7 @@ void Init(int* argc,
38413841
prog_start_time = static_cast<double>(uv_now(uv_default_loop()));
38423842

38433843
// Register built-in modules
3844-
node::RegisterBuiltinModules();
3844+
RegisterBuiltinModules();
38453845

38463846
// Make inherited handles noninheritable.
38473847
uv_disable_stdio_inheritance();
@@ -4181,7 +4181,7 @@ inline int Start(uv_loop_t* event_loop,
41814181
int Start(int argc, char** argv) {
41824182
atexit([] () { uv_tty_reset_mode(); });
41834183
PlatformInit();
4184-
node::performance::performance_node_start = PERFORMANCE_NOW();
4184+
performance::performance_node_start = PERFORMANCE_NOW();
41854185

41864186
CHECK_GT(argc, 0);
41874187

@@ -4218,7 +4218,7 @@ int Start(int argc, char** argv) {
42184218
v8_platform.StartTracingAgent();
42194219
}
42204220
V8::Initialize();
4221-
node::performance::performance_v8_start = PERFORMANCE_NOW();
4221+
performance::performance_v8_start = PERFORMANCE_NOW();
42224222
v8_initialized = true;
42234223
const int exit_code =
42244224
Start(uv_default_loop(), argc, argv, exec_argc, exec_argv);

0 commit comments

Comments
 (0)