diff options
Diffstat (limited to 'lib/internal/process/execution.js')
-rw-r--r-- | lib/internal/process/execution.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/process/execution.js b/lib/internal/process/execution.js index 06dfbce295..eed554263c 100644 --- a/lib/internal/process/execution.js +++ b/lib/internal/process/execution.js @@ -39,7 +39,7 @@ function evalModule(source, print) { const { log, error } = require('internal/console/global'); const { decorateErrorStack } = require('internal/util'); const asyncESM = require('internal/process/esm_loader'); - asyncESM.loaderPromise.then(async (loader) => { + Promise.resolve(asyncESM.ESMLoader).then(async (loader) => { const { result } = await loader.eval(source); if (print) { log(result); |