We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d7e50d commit 859bb3eCopy full SHA for 859bb3e
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