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.
lib/internal/vm/module.js
1 parent 1a0c5d5 commit 1a4d73bCopy full SHA for 1a4d73b
1 file changed
test/parallel/test-vm-module-synthetic.js
@@ -65,4 +65,14 @@ const assert = require('assert');
65
code: 'ERR_VM_MODULE_STATUS',
66
});
67
}
68
+
69
+ {
70
+ assert.throws(() => {
71
+ SyntheticModule.prototype.setExport.call({}, 'foo');
72
+ }, {
73
+ code: 'ERR_VM_MODULE_NOT_MODULE',
74
+ message: /Provided module is not an instance of Module/
75
+ });
76
+ }
77
78
})().then(common.mustCall());
0 commit comments