fix: apply module search paths restriction on worker and child process (#41138)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
This commit is contained in:
trop[bot]
2024-01-26 09:28:26 -06:00
committed by GitHub
parent 6e1dc452f9
commit d92ffceafb
10 changed files with 76 additions and 85 deletions

View File

@@ -10,9 +10,6 @@ const Module = require('module') as NodeJS.ModuleInternal;
// we need to restore it here.
process.argv.splice(1, 1);
// Clear search paths.
require('../common/reset-search-paths');
// Import common settings.
require('@electron/internal/common/init');