5391211824
* chore: bump node in DEPS to v16.15.0 * chore: update patches * src: allow preventing InitializeInspector in env https://github.com/nodejs/node/pull/35025 * chore: update node gn filenames * crypto: change default check(Host|Email) behavior * Revert "crypto: change default check(Host|Email) behavior" This reverts commit 1f1eb23702fe9dfc09470248d6c1a673f42b80fe. * update node crypto tests to work with boringssl Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
30 lines
1,022 B
Diff
30 lines
1,022 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Shelley Vohr <shelley.vohr@gmail.com>
|
|
Date: Thu, 13 Sep 2018 08:56:07 -0700
|
|
Subject: feat: initialize asar support
|
|
|
|
This patch initializes asar support in Node.js.
|
|
|
|
diff --git a/lib/internal/bootstrap/pre_execution.js b/lib/internal/bootstrap/pre_execution.js
|
|
index 8de57a5666131ff0c9f7ad844498e1bd3c357a70..b184a0d9ae3434af746be269495e9e4c80c58091 100644
|
|
--- a/lib/internal/bootstrap/pre_execution.js
|
|
+++ b/lib/internal/bootstrap/pre_execution.js
|
|
@@ -84,6 +84,7 @@ function prepareMainThreadExecution(expandArgv1 = false) {
|
|
assert(!CJSLoader.hasLoadedAnyUserCJSModule);
|
|
loadPreloadModules();
|
|
initializeFrozenIntrinsics();
|
|
+ setupAsarSupport();
|
|
}
|
|
|
|
function patchProcessObject(expandArgv1) {
|
|
@@ -540,6 +541,10 @@ function loadPreloadModules() {
|
|
}
|
|
}
|
|
|
|
+function setupAsarSupport() {
|
|
+ process._linkedBinding('electron_common_asar').initAsarSupport(require);
|
|
+}
|
|
+
|
|
module.exports = {
|
|
patchProcessObject,
|
|
setupCoverageHooks,
|