Skip to content

Commit 8ec5944

Browse files
committed
fixup! module: ensure successful dynamic import returns the same result
1 parent 5569c58 commit 8ec5944

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/repl.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ const {
7373
ObjectKeys,
7474
ObjectSetPrototypeOf,
7575
Promise,
76-
PromisePrototypeThen,
7776
ReflectApply,
7877
RegExp,
7978
RegExpPrototypeExec,
@@ -464,7 +463,7 @@ function REPLServer(prompt,
464463
displayErrors: true,
465464
importModuleDynamically: (specifier, _, importAssertions) => {
466465
return asyncESM.esmLoader.dynamicImport(specifier, parentURL,
467-
importAssertions);
466+
importAssertions);
468467
}
469468
});
470469
} catch (fallbackError) {
@@ -508,7 +507,7 @@ function REPLServer(prompt,
508507
displayErrors: true,
509508
importModuleDynamically: (specifier, _, importAssertions) => {
510509
return asyncESM.esmLoader.dynamicImport(specifier, parentURL,
511-
importAssertions);
510+
importAssertions);
512511
}
513512
});
514513
} catch (e) {

0 commit comments

Comments
 (0)