Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a757e05

Browse filesBrowse files
Fishrock123evanlucas
authored andcommitted
lib,src: move src/node.js to lib/internal/node.js
PR-URL: #5103 Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent e3c7b46 commit a757e05
Copy full SHA for a757e05

File tree

Expand file treeCollapse file tree

3 files changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+4
-4
lines changed
Open diff view settings
File renamed without changes.
Collapse file

‎node.gyp‎

Copy file name to clipboardExpand all lines: node.gyp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
'node_target_type%': 'executable',
1717
'node_core_target_name%': 'node',
1818
'library_files': [
19-
'src/node.js',
19+
'lib/internal/node.js',
2020
'lib/_debug_agent.js',
2121
'lib/_debugger.js',
2222
'lib/assert.js',
Collapse file

‎src/node_javascript.cc‎

Copy file name to clipboardExpand all lines: src/node_javascript.cc
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ using v8::String;
1414

1515
Local<String> MainSource(Environment* env) {
1616
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();
1919
}
2020

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

2424
for (auto native : natives) {
25-
if (native.source != node_native) {
25+
if (native.source != internal_node_native) {
2626
Local<String> name = String::NewFromUtf8(env->isolate(), native.name);
2727
Local<String> source =
2828
String::NewFromUtf8(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.