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 <trev.norris@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Fishrock123 authored and evanlucas committed Mar 31, 2016
1 parent a757e05 commit 40847b0
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 40847b0

Please sign in to comment.