@@ -882,10 +882,10 @@ index 0000000000000000000000000000000000000000..f13b471d17128468bed06e66bd03a2ea
882882+ }
883883diff --git a/filenames.json b/filenames.json
884884new file mode 100644
885- index 0000000000000000000000000000000000000000..be8613d11f9f5b1c6604257edf707792f2119fcb
885+ index 0000000000000000000000000000000000000000..bfe6555be5239c6d9cad59e8b845638d50f31ee3
886886--- /dev/null
887887+++ b/filenames.json
888- @@ -0,0 +1,443 @@
888+ @@ -0,0 +1,447 @@
889889+ // This file is automatically generated by generate_gn_filenames_json.py
890890+ // DO NOT EDIT
891891+ {
@@ -960,7 +960,6 @@ index 0000000000000000000000000000000000000000..be8613d11f9f5b1c6604257edf707792
960960+ "lib/internal/bootstrap/node.js",
961961+ "lib/internal/bootstrap/pre_execution.js",
962962+ "lib/internal/per_context/primordials.js",
963- + "lib/internal/per_context/setup.js",
964963+ "lib/internal/per_context/domexception.js",
965964+ "lib/async_hooks.js",
966965+ "lib/assert.js",
@@ -1052,6 +1051,7 @@ index 0000000000000000000000000000000000000000..be8613d11f9f5b1c6604257edf707792
10521051+ "lib/internal/fixed_queue.js",
10531052+ "lib/internal/freelist.js",
10541053+ "lib/internal/freeze_intrinsics.js",
1054+ + "lib/internal/fs/dir.js",
10551055+ "lib/internal/fs/promises.js",
10561056+ "lib/internal/fs/read_file_context.js",
10571057+ "lib/internal/fs/rimraf.js",
@@ -1106,6 +1106,8 @@ index 0000000000000000000000000000000000000000..be8613d11f9f5b1c6604257edf707792
11061106+ "lib/internal/repl/history.js",
11071107+ "lib/internal/repl/utils.js",
11081108+ "lib/internal/socket_list.js",
1109+ + "lib/internal/source_map/source_map.js",
1110+ + "lib/internal/source_map/source_map_cache.js",
11091111+ "lib/internal/test/binding.js",
11101112+ "lib/internal/timers.js",
11111113+ "lib/internal/tls.js",
@@ -1191,6 +1193,7 @@ index 0000000000000000000000000000000000000000..be8613d11f9f5b1c6604257edf707792
11911193+ "src/node_constants.cc",
11921194+ "src/node_contextify.cc",
11931195+ "src/node_credentials.cc",
1196+ + "src/node_dir.cc",
11941197+ "src/node_domain.cc",
11951198+ "src/node_env_var.cc",
11961199+ "src/node_errors.cc",
@@ -1272,6 +1275,7 @@ index 0000000000000000000000000000000000000000..be8613d11f9f5b1c6604257edf707792
12721275+ "src/node_constants.h",
12731276+ "src/node_context_data.h",
12741277+ "src/node_contextify.h",
1278+ + "src/node_dir.h",
12751279+ "src/node_errors.h",
12761280+ "src/node_file.h",
12771281+ "src/node_http_parser_impl.h",
@@ -1535,7 +1539,7 @@ index 0000000000000000000000000000000000000000..f3c5c798c0aefcb8cf9b1570a7b4817c
15351539+ args = rebase_path(inputs + outputs, root_build_dir)
15361540+ }
15371541diff --git a/src/node_version.h b/src/node_version.h
1538- index 2d105483ba10533d992de3265121e6ab9edce2ed..8a8fd5f7fad4a69b65e06d67225a398385d3bbbf 100644
1542+ index a61a186edd3c92d6f0bd760a9990b5c8ed57e6fa..e4963fdfd9b93a6f50a4f1035f63e95432dd8d8e 100644
15391543--- a/src/node_version.h
15401544+++ b/src/node_version.h
15411545@@ -89,7 +89,10 @@
@@ -1667,25 +1671,25 @@ index 0000000000000000000000000000000000000000..3088ae4bdf814ae255c9805ebd393b2e
16671671+
16681672+ out_file.writelines(new_contents)
16691673diff --git a/tools/js2c.py b/tools/js2c.py
1670- index 0189dd762919162c8a897d291bdda3cfd600eab6..7b3e90af88b873c32f8ed51712f7dfdff3c1c706 100755
1674+ index 1346b2a87046d3472577875c887b3b44a63280ed..752344d68c3f63b4c5e491b33d4576ed48f8b74f 100755
16711675--- a/tools/js2c.py
16721676+++ b/tools/js2c.py
1673- @@ -261,9 +261,17 @@ def NormalizeFileName(filename):
1677+ @@ -261,10 +261,18 @@ def NormalizeFileName(filename):
16741678 split = ['internal'] + split
16751679 else: # `lib/**/*.js` so drop the 'lib' part
16761680 split = split[1:]
16771681+
16781682 if len(split):
16791683 filename = '/'.join(split)
16801684- return os.path.splitext(filename)[0]
1681- +
1685+
16821686+ # Electron-specific: when driving the node build from Electron, we generate
16831687+ # config.gypi in a separate directory and pass the absolute path to js2c.
16841688+ # This overrides the absolute path so that the variable names in the
16851689+ # generated C are as if it was in the root node directory.
16861690+ if filename.endswith("/config.gypi"):
16871691+ filename = "config.gypi"
1688-
1692+ +
16891693+ return os.path.splitext(filename)[0]
16901694
16911695 def JS2C(source_files, target):
0 commit comments