Skip to content

Commit

Permalink
await for _findGeneratorClass
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Feb 10, 2023
1 parent a48a0fb commit 39ce96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ class Environment extends Base {

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

0 comments on commit 39ce96d

Please sign in to comment.