File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
lib/internal/bootstrap/switches Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ rawMethods.resetStdioForTesting = function() {
290
290
// Needed by the module loader and generally needed everywhere.
291
291
require ( 'fs' ) ;
292
292
require ( 'util' ) ;
293
- require ( 'url' ) ; // eslint-disable-line no-restricted-modules
293
+ require ( 'internal/ url' ) ;
294
294
295
295
require ( 'internal/modules/cjs/loader' ) ;
296
296
require ( 'internal/modules/esm/utils' ) ;
Original file line number Diff line number Diff line change @@ -95,12 +95,7 @@ const expectedModules = new Set([
95
95
'NativeModule internal/process/pre_execution' ,
96
96
] ) ;
97
97
98
- if ( common . isMainThread ) {
99
- [
100
- 'NativeModule internal/idna' ,
101
- 'NativeModule url' ,
102
- ] . forEach ( expectedModules . add . bind ( expectedModules ) ) ;
103
- } else {
98
+ if ( ! common . isMainThread ) {
104
99
[
105
100
'NativeModule diagnostics_channel' ,
106
101
'NativeModule internal/abort_controller' ,
You can’t perform that action at this time.
0 commit comments