Skip to content

Commit 2282dce

Browse files
danbevaddaleax
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 d255db3 commit 2282dce

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/node.cc

+9-9
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ using v8::Undefined;
173173
using v8::V8;
174174
using v8::Value;
175175

176-
using AsyncHooks = node::Environment::AsyncHooks;
176+
using AsyncHooks = Environment::AsyncHooks;
177177

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

277-
node::DebugOptions debug_options;
277+
DebugOptions debug_options;
278278

279279
static struct {
280280
#if NODE_USE_V8_PLATFORM
@@ -312,7 +312,7 @@ static struct {
312312

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

11091109
void* ArrayBufferAllocator::Allocate(size_t size) {
11101110
if (zero_fill_field_ || zero_fill_all_buffers)
1111-
return node::UncheckedCalloc(size);
1111+
return UncheckedCalloc(size);
11121112
else
1113-
return node::UncheckedMalloc(size);
1113+
return UncheckedMalloc(size);
11141114
}
11151115

11161116
namespace {
@@ -4449,7 +4449,7 @@ void Init(int* argc,
44494449
prog_start_time = static_cast<double>(uv_now(uv_default_loop()));
44504450

44514451
// Register built-in modules
4452-
node::RegisterBuiltinModules();
4452+
RegisterBuiltinModules();
44534453

44544454
// Make inherited handles noninheritable.
44554455
uv_disable_stdio_inheritance();
@@ -4799,7 +4799,7 @@ inline int Start(uv_loop_t* event_loop,
47994799
int Start(int argc, char** argv) {
48004800
atexit([] () { uv_tty_reset_mode(); });
48014801
PlatformInit();
4802-
node::performance::performance_node_start = PERFORMANCE_NOW();
4802+
performance::performance_node_start = PERFORMANCE_NOW();
48034803

48044804
CHECK_GT(argc, 0);
48054805

@@ -4836,7 +4836,7 @@ int Start(int argc, char** argv) {
48364836
v8_platform.StartTracingAgent();
48374837
}
48384838
V8::Initialize();
4839-
node::performance::performance_v8_start = PERFORMANCE_NOW();
4839+
performance::performance_v8_start = PERFORMANCE_NOW();
48404840
v8_initialized = true;
48414841
const int exit_code =
48424842
Start(uv_default_loop(), argc, argv, exec_argc, exec_argv);

0 commit comments

Comments
 (0)