From d168ab5778724a0202d2aee39b1764b3506e7163 Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Tue, 15 Mar 2016 16:23:39 -0400 Subject: [PATCH] lib,src: move src/node.js to lib/internal/node.js PR-URL: https://github.com/nodejs/node/pull/5103 Reviewed-By: Trevor Norris Reviewed-By: James M Snell --- {src => lib/internal}/node.js | 0 node.gyp | 2 +- src/node_javascript.cc | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) rename {src => lib/internal}/node.js (100%) diff --git a/src/node.js b/lib/internal/node.js similarity index 100% rename from src/node.js rename to lib/internal/node.js diff --git a/node.gyp b/node.gyp index 6b986cda870f3b..b7ab94b02825fb 100644 --- a/node.gyp +++ b/node.gyp @@ -16,7 +16,7 @@ 'node_target_type%': 'executable', 'node_core_target_name%': 'node', 'library_files': [ - 'src/node.js', + 'lib/internal/node.js', 'lib/_debug_agent.js', 'lib/_debugger.js', 'lib/assert.js', diff --git a/src/node_javascript.cc b/src/node_javascript.cc index d5377047c0ec5c..622b8443ad8e74 100644 --- a/src/node_javascript.cc +++ b/src/node_javascript.cc @@ -14,15 +14,15 @@ using v8::String; Local MainSource(Environment* env) { return String::NewFromUtf8( - env->isolate(), reinterpret_cast(node_native), - NewStringType::kNormal, sizeof(node_native)).ToLocalChecked(); + env->isolate(), reinterpret_cast(internal_node_native), + NewStringType::kNormal, sizeof(internal_node_native)).ToLocalChecked(); } void DefineJavaScript(Environment* env, Local target) { HandleScope scope(env->isolate()); for (auto native : natives) { - if (native.source != node_native) { + if (native.source != internal_node_native) { Local name = String::NewFromUtf8(env->isolate(), native.name); Local source = String::NewFromUtf8(