Skip to content

Commit cae4182

Browse files
committed
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 1708af3 commit cae4182

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
@@ -172,7 +172,7 @@ using v8::Undefined;
172172
using v8::V8;
173173
using v8::Value;
174174

175-
using AsyncHooks = node::Environment::AsyncHooks;
175+
using AsyncHooks = Environment::AsyncHooks;
176176

177177
static bool print_eval = false;
178178
static bool force_repl = false;
@@ -273,7 +273,7 @@ static double prog_start_time;
273273
static Mutex node_isolate_mutex;
274274
static v8::Isolate* node_isolate;
275275

276-
node::DebugOptions debug_options;
276+
DebugOptions debug_options;
277277

278278
static struct {
279279
#if NODE_USE_V8_PLATFORM
@@ -311,7 +311,7 @@ static struct {
311311

312312
#if HAVE_INSPECTOR
313313
bool StartInspector(Environment *env, const char* script_path,
314-
const node::DebugOptions& options) {
314+
const DebugOptions& options) {
315315
// Inspector agent can't fail to start, but if it was configured to listen
316316
// right away on the websocket port and fails to bind/etc, this will return
317317
// false.
@@ -343,7 +343,7 @@ static struct {
343343
void DrainVMTasks(Isolate* isolate) {}
344344
void CancelVMTasks(Isolate* isolate) {}
345345
bool StartInspector(Environment *env, const char* script_path,
346-
const node::DebugOptions& options) {
346+
const DebugOptions& options) {
347347
env->ThrowError("Node compiled with NODE_USE_V8_PLATFORM=0");
348348
return true;
349349
}
@@ -780,9 +780,9 @@ Local<Value> WinapiErrnoException(Isolate* isolate,
780780

781781
void* ArrayBufferAllocator::Allocate(size_t size) {
782782
if (zero_fill_field_ || zero_fill_all_buffers)
783-
return node::UncheckedCalloc(size);
783+
return UncheckedCalloc(size);
784784
else
785-
return node::UncheckedMalloc(size);
785+
return UncheckedMalloc(size);
786786
}
787787

788788
namespace {
@@ -4102,7 +4102,7 @@ void Init(int* argc,
41024102
prog_start_time = static_cast<double>(uv_now(uv_default_loop()));
41034103

41044104
// Register built-in modules
4105-
node::RegisterBuiltinModules();
4105+
RegisterBuiltinModules();
41064106

41074107
// Make inherited handles noninheritable.
41084108
uv_disable_stdio_inheritance();
@@ -4454,7 +4454,7 @@ inline int Start(uv_loop_t* event_loop,
44544454
int Start(int argc, char** argv) {
44554455
atexit([] () { uv_tty_reset_mode(); });
44564456
PlatformInit();
4457-
node::performance::performance_node_start = PERFORMANCE_NOW();
4457+
performance::performance_node_start = PERFORMANCE_NOW();
44584458

44594459
CHECK_GT(argc, 0);
44604460

@@ -4491,7 +4491,7 @@ int Start(int argc, char** argv) {
44914491
v8_platform.StartTracingAgent();
44924492
}
44934493
V8::Initialize();
4494-
node::performance::performance_v8_start = PERFORMANCE_NOW();
4494+
performance::performance_v8_start = PERFORMANCE_NOW();
44954495
v8_initialized = true;
44964496
const int exit_code =
44974497
Start(uv_default_loop(), argc, argv, exec_argc, exec_argv);

0 commit comments

Comments
 (0)