Init asar support in Node
(cherry picked from commit 651b2220a0ded8e0148d9db143ec8e1e4f88d9c3)
This commit is contained in:
Родитель
7fa4964247
Коммит
bac51bfc75
|
@ -57,6 +57,7 @@
|
|||
_process.setup_hrtime();
|
||||
_process.setup_cpuUsage();
|
||||
_process.setupMemoryUsage();
|
||||
setupAsarSupport();
|
||||
_process.setupKillAndExit();
|
||||
if (global.__coverage__)
|
||||
NativeModule.require('internal/process/write-coverage').setup();
|
||||
|
@ -569,5 +570,9 @@
|
|||
new vm.Script(source, { displayErrors: true, filename });
|
||||
}
|
||||
|
||||
function setupAsarSupport() {
|
||||
process.binding('atom_common_asar').initAsarSupport(process, NativeModule.require);
|
||||
}
|
||||
|
||||
startup();
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче