Skip to content

Commit 6259355

Browse files
committed
module: bootstrap module loaders in shadow realm
nodejs/node#48655
1 parent f34cca2 commit 6259355

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

patches/node/feat_initialize_asar_support.patch

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,19 @@ Subject: feat: initialize asar support
66
This patch initializes asar support in Node.js.
77

88
diff --git a/lib/internal/process/pre_execution.js b/lib/internal/process/pre_execution.js
9-
index 917ba90a1c8bbbff5d86e5f2079d1ce67237280e..66dfd7c1e521f38691e4656ac7ab0572a2fe75da 100644
9+
index 9142fed75e9050fcc17c01208e82f1bc57923fcd..fc8f61ee6d30cf18951ec7a5eb5f09a9583a85ae 100644
1010
--- a/lib/internal/process/pre_execution.js
1111
+++ b/lib/internal/process/pre_execution.js
12-
@@ -67,6 +67,8 @@ function prepareWorkerThreadExecution() {
12+
@@ -87,6 +87,7 @@ function prepareShadowRealmExecution() {
1313
});
1414
}
1515

16-
+
1716
+let processLinkedBinding = process._linkedBinding;
1817
function prepareExecution(options) {
1918
const { expandArgv1, initializeModules, isMainThread } = options;
2019

21-
@@ -172,12 +174,17 @@ function setupUserModules(isLoaderWorker = false) {
22-
loadPreloadModules();
20+
@@ -193,12 +194,17 @@ function setupUserModules(forceDefaultLoader = false) {
21+
}
2322
// Need to be done after --require setup.
2423
initializeFrozenIntrinsics();
2524
+ setupAsarSupport();

0 commit comments

Comments
 (0)