Skip to content

Commit

Permalink
fixup! module: ensure successful dynamic import returns the same result
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Feb 15, 2023
1 parent 5569c58 commit 8ec5944
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ const {
ObjectKeys,
ObjectSetPrototypeOf,
Promise,
PromisePrototypeThen,
ReflectApply,
RegExp,
RegExpPrototypeExec,
Expand Down Expand Up @@ -464,7 +463,7 @@ function REPLServer(prompt,
displayErrors: true,
importModuleDynamically: (specifier, _, importAssertions) => {
return asyncESM.esmLoader.dynamicImport(specifier, parentURL,
importAssertions);
importAssertions);
}
});
} catch (fallbackError) {
Expand Down Expand Up @@ -508,7 +507,7 @@ function REPLServer(prompt,
displayErrors: true,
importModuleDynamically: (specifier, _, importAssertions) => {
return asyncESM.esmLoader.dynamicImport(specifier, parentURL,
importAssertions);
importAssertions);
}
});
} catch (e) {
Expand Down

0 comments on commit 8ec5944

Please sign in to comment.