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 8a602a2 commit 0eee2c3Copy full SHA for 0eee2c3
1 file changed
lib/internal/modules/esm/module_job.js
@@ -192,10 +192,10 @@ class ModuleJob {
192
}
193
194
runSync() {
195
+ assert(this.module instanceof ModuleWrap);
196
if (this.instantiated !== undefined) {
- return this.instantiated;
197
+ return { __proto__: null, module: this.module };
198
- assert(this.module instanceof ModuleWrap);
199
200
// TODO: better handle errors
201
this.module.instantiate();
0 commit comments