We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 070c9a8 commit bccbb28Copy full SHA for bccbb28
lib/internal/vm/module.js
@@ -303,7 +303,7 @@ class SourceTextModule extends Module {
303
304
const promises = this[kWrap].link(async (identifier, assert) => {
305
const module = await linker(identifier, this, { assert });
306
- if (module[kWrap] === undefined) {
+ if (module === undefined || module[kWrap] === undefined) {
307
throw new ERR_VM_MODULE_NOT_MODULE();
308
}
309
if (module.context !== this.context) {
0 commit comments