fix: apply module search paths restriction on worker and child process (#41118)
This commit is contained in:
parent
6c9f9de40a
commit
db2bf1a0d1
10 changed files with 76 additions and 85 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue