GeezerVison is showing github.com — lib,src: move src/node.js to lib/internal/node.js · nodejs/node@a757e05
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard File renamed without changes.
Collapse file
Copy file name to clipboardExpand all lines: node.gyp +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
16 | 16 | 'node_target_type%': 'executable', |
17 | 17 | 'node_core_target_name%': 'node', |
18 | 18 | 'library_files': [ |
19 | | - 'src/node.js', |
| 19 | + 'lib/internal/node.js', |
20 | 20 | 'lib/_debug_agent.js', |
21 | 21 | 'lib/_debugger.js', |
22 | 22 | 'lib/assert.js', |
|
Collapse file
Copy file name to clipboardExpand all lines: src/node_javascript.cc +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -14,15 +14,15 @@ using v8::String; |
14 | 14 |
|
15 | 15 | Local<String> MainSource(Environment* env) { |
16 | 16 | return String::NewFromUtf8( |
17 | | - env->isolate(), reinterpret_cast<const char*>(node_native), |
18 | | - NewStringType::kNormal, sizeof(node_native)).ToLocalChecked(); |
| 17 | + env->isolate(), reinterpret_cast<const char*>(internal_node_native), |
| 18 | + NewStringType::kNormal, sizeof(internal_node_native)).ToLocalChecked(); |
19 | 19 | } |
20 | 20 |
|
21 | 21 | void DefineJavaScript(Environment* env, Local<Object> target) { |
22 | 22 | HandleScope scope(env->isolate()); |
23 | 23 |
|
24 | 24 | for (auto native : natives) { |
25 | | - if (native.source != node_native) { |
| 25 | + if (native.source != internal_node_native) { |
26 | 26 | Local<String> name = String::NewFromUtf8(env->isolate(), native.name); |
27 | 27 | Local<String> source = |
28 | 28 | String::NewFromUtf8( |
|