Skip to content

Commit

Permalink
chore: update feat_initialize_asar_support.patch
Browse files Browse the repository at this point in the history
no code changes; patch just needed an update due to nearby upstream changes

Xref: nodejs/node#49986
  • Loading branch information
ckerr authored and codebytere committed Dec 8, 2023
1 parent c18b136 commit 943ccb7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions patches/node/feat_initialize_asar_support.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Subject: feat: initialize asar support
This patch initializes asar support in Node.js.

diff --git a/lib/internal/process/pre_execution.js b/lib/internal/process/pre_execution.js
index 1f4a08515b5ae9e15ee987d9287f71b0fed3cb30..0dc769846b4e6fe84438cd6d8024c4a89eb90a9b 100644
index 917ba90a1c..66dfd7c1e5 100644
--- a/lib/internal/process/pre_execution.js
+++ b/lib/internal/process/pre_execution.js
@@ -67,6 +67,8 @@ function prepareWorkerThreadExecution() {
Expand All @@ -18,7 +18,7 @@ index 1f4a08515b5ae9e15ee987d9287f71b0fed3cb30..0dc769846b4e6fe84438cd6d8024c4a8
function prepareExecution(options) {
const { expandArgv1, initializeModules, isMainThread } = options;

@@ -170,12 +172,17 @@ function setupUserModules(isLoaderWorker = false) {
@@ -172,12 +174,17 @@ function setupUserModules(isLoaderWorker = false) {
loadPreloadModules();
// Need to be done after --require setup.
initializeFrozenIntrinsics();
Expand All @@ -33,6 +33,6 @@ index 1f4a08515b5ae9e15ee987d9287f71b0fed3cb30..0dc769846b4e6fe84438cd6d8024c4a8
+ processLinkedBinding('electron_common_asar').initAsarSupport(require);
+}
+
function patchProcessObject(expandArgv1) {
const binding = internalBinding('process_methods');
binding.patchProcessObject(process);
/**
* Patch the process object with legacy properties and normalizations.
* Replace `process.argv[0]` with `process.execPath`, preserving the original `argv[0]` value as `process.argv0`.

0 comments on commit 943ccb7

Please sign in to comment.