Skip to content

Commit

Permalink
lib,src: move src/node.js to lib/internal/node.js
Browse files Browse the repository at this point in the history
PR-URL: #5103
Reviewed-By: Trevor Norris <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
Fishrock123 committed Mar 22, 2016
1 parent 015cef2 commit 4bf2aca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions src/node_javascript.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ using v8::String;

Local<String> MainSource(Environment* env) {
return String::NewFromUtf8(
env->isolate(), reinterpret_cast<const char*>(node_native),
NewStringType::kNormal, sizeof(node_native)).ToLocalChecked();
env->isolate(), reinterpret_cast<const char*>(internal_node_native),
NewStringType::kNormal, sizeof(internal_node_native)).ToLocalChecked();
}

void DefineJavaScript(Environment* env, Local<Object> target) {
HandleScope scope(env->isolate());

for (auto native : natives) {
if (native.source != node_native) {
if (native.source != internal_node_native) {
Local<String> name = String::NewFromUtf8(env->isolate(), native.name);
Local<String> source =
String::NewFromUtf8(
Expand Down

0 comments on commit 4bf2aca

Please sign in to comment.