mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
fix: apply module search paths restriction on worker and child process (#41118)
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user