Skip to content

Commit 39ce96d

Browse files
committed
await for _findGeneratorClass
1 parent a48a0fb commit 39ce96d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/environment.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ class Environment extends Base {
564564

565565
// eslint-disable-next-line node/no-unsupported-features/es-syntax
566566
const importModule = async () => import(meta.resolved);
567-
const instantiate = async (args, options) => this.instantiate(this._findGeneratorClass(await meta.importGenerator()), args, options);
567+
const instantiate = async (args, options) => this.instantiate(await this._findGeneratorClass(await meta.importGenerator()), args, options);
568568
const instantiateHelp = async () => instantiate([], {help: true});
569569
const newMeta = {
570570
...meta,

0 commit comments

Comments
 (0)