Skip to content

Commit

Permalink
Remove unneeded call to promiseWait - we only need this once TLA su…
Browse files Browse the repository at this point in the history
…pport is in, and until then, the results are a bit off
  • Loading branch information
weswigham committed Dec 10, 2019
1 parent 286692b commit fe74e6f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/internal/modules/cjs/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1255,11 +1255,7 @@ Module._extensions['.mjs'] = function(module, filename) {
*/
const instantiated = promiseWait(job.instantiate());
module.exports = instantiated.getNamespace();
/**
* So long as the module doesn't contain TLA, this will be sync, otherwise it
* appears async
*/
promiseWait(instantiated.evaluate(-1, false));
instantiated.evaluate(-1, false);
}

function createRequireFromPath(filename) {
Expand Down

0 comments on commit fe74e6f

Please sign in to comment.