summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2018-02-23 15:42:20 +0100
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-02-26 07:19:05 +0100
commitcae41827610667d987a557ed828f89574fad9cf2 (patch)
treed7a1a33553a0e4addff8133f1a381b6b55bf9529 /src
parent1708af369ba4cdfbc9f3eadd657508498b8489a3 (diff)
downloadandroid-node-v8-cae41827610667d987a557ed828f89574fad9cf2.tar.gz
android-node-v8-cae41827610667d987a557ed828f89574fad9cf2.tar.bz2
android-node-v8-cae41827610667d987a557ed828f89574fad9cf2.zip
src: remove node namespace qualifiers
This commit removes unneccessary node namespace qualifiers in node.cc for consistency. PR-URL: https://github.com/nodejs/node/pull/18962 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/node.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/node.cc b/src/node.cc
index 0d62c89b03..28d66452f8 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -172,7 +172,7 @@ using v8::Undefined;
using v8::V8;
using v8::Value;
-using AsyncHooks = node::Environment::AsyncHooks;
+using AsyncHooks = Environment::AsyncHooks;
static bool print_eval = false;
static bool force_repl = false;
@@ -273,7 +273,7 @@ static double prog_start_time;
static Mutex node_isolate_mutex;
static v8::Isolate* node_isolate;
-node::DebugOptions debug_options;
+DebugOptions debug_options;
static struct {
#if NODE_USE_V8_PLATFORM
@@ -311,7 +311,7 @@ static struct {
#if HAVE_INSPECTOR
bool StartInspector(Environment *env, const char* script_path,
- const node::DebugOptions& options) {
+ const DebugOptions& options) {
// Inspector agent can't fail to start, but if it was configured to listen
// right away on the websocket port and fails to bind/etc, this will return
// false.
@@ -343,7 +343,7 @@ static struct {
void DrainVMTasks(Isolate* isolate) {}
void CancelVMTasks(Isolate* isolate) {}
bool StartInspector(Environment *env, const char* script_path,
- const node::DebugOptions& options) {
+ const DebugOptions& options) {
env->ThrowError("Node compiled with NODE_USE_V8_PLATFORM=0");
return true;
}
@@ -780,9 +780,9 @@ Local<Value> WinapiErrnoException(Isolate* isolate,
void* ArrayBufferAllocator::Allocate(size_t size) {
if (zero_fill_field_ || zero_fill_all_buffers)
- return node::UncheckedCalloc(size);
+ return UncheckedCalloc(size);
else
- return node::UncheckedMalloc(size);
+ return UncheckedMalloc(size);
}
namespace {
@@ -4102,7 +4102,7 @@ void Init(int* argc,
prog_start_time = static_cast<double>(uv_now(uv_default_loop()));
// Register built-in modules
- node::RegisterBuiltinModules();
+ RegisterBuiltinModules();
// Make inherited handles noninheritable.
uv_disable_stdio_inheritance();
@@ -4454,7 +4454,7 @@ inline int Start(uv_loop_t* event_loop,
int Start(int argc, char** argv) {
atexit([] () { uv_tty_reset_mode(); });
PlatformInit();
- node::performance::performance_node_start = PERFORMANCE_NOW();
+ performance::performance_node_start = PERFORMANCE_NOW();
CHECK_GT(argc, 0);
@@ -4491,7 +4491,7 @@ int Start(int argc, char** argv) {
v8_platform.StartTracingAgent();
}
V8::Initialize();
- node::performance::performance_v8_start = PERFORMANCE_NOW();
+ performance::performance_v8_start = PERFORMANCE_NOW();
v8_initialized = true;
const int exit_code =
Start(uv_default_loop(), argc, argv, exec_argc, exec_argv);