Skip to content

Commit

Permalink
lib: rename /node.js to /bootstrap_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 4bf2aca commit ec6af31
Show file tree
Hide file tree
Showing 3 changed files with 6 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': [
'lib/internal/node.js',
'lib/internal/bootstrap_node.js',
'lib/_debug_agent.js',
'lib/_debugger.js',
'lib/assert.js',
Expand Down
8 changes: 5 additions & 3 deletions src/node_javascript.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ using v8::String;

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

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

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

0 comments on commit ec6af31

Please sign in to comment.