We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
> require('meriyah').version '4.2.0' > require('meriyah').parseModule('await 1') { type: 'Program', sourceType: 'module', body: [ { type: 'ExpressionStatement', expression: [Object] } ] } > require('meriyah').parseModule('foo(await 1)') Uncaught [ParseError [SyntaxError]: [1:9]: Await is only valid in async functions ] { index: 9, line: 1, column: 9, description: '[1:9]: Await is only valid in async functions', loc: { line: 1, column: 9 } }
The text was updated successfully, but these errors were encountered:
fix(parser): allow top level await in expressions
4855074
Such as foo[await 1], foo(await 1). closes #212
37c6361
Released v4.2.1.
Sorry, something went wrong.
3cp
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: