Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Apr 18, 2023
1 parent ffbdec4 commit 758fd93
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/internal/main/eval_stdin.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const {
prepareMainThreadExecution();
markBootstrapComplete();


readStdin((code) => {
// This is necessary for fork() and CJS module compilation.
// TODO(joyeecheung): pass this with something really internal.
Expand Down
1 change: 0 additions & 1 deletion lib/internal/main/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ prepareMainThreadExecution();


markBootstrapComplete();
require('internal/process/esm_loader').init();

// Start the debugger agent.
process.nextTick(() => {
Expand Down
3 changes: 2 additions & 1 deletion lib/internal/main/test_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ if (isUsingInspector()) {
inspectPort = process.debugPort;
}

require('internal/process/esm_loader').init();
// We might need ESM loader for custom test reporters.
require('internal/process/esm_loader').initIfNeeded();

run({ concurrency, inspectPort, watch: getOptionValue('--watch'), setup: setupTestReporters })
.once('test:fail', () => {
Expand Down
5 changes: 5 additions & 0 deletions test/parallel/test-bootstrap-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ const expectedModules = new Set([
'NativeModule internal/net',
'NativeModule internal/dns/utils',
'NativeModule internal/process/pre_execution',
'NativeModule internal/modules/esm/loader',
'NativeModule internal/process/esm_loader',
'NativeModule internal/modules/esm/assert',
'NativeModule internal/modules/esm/module_map',
'NativeModule internal/modules/esm/translators',
]);

if (!common.isMainThread) {
Expand Down

0 comments on commit 758fd93

Please sign in to comment.