Skip to content
New issue

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

Change allowAwaitOutsideFunction to be enabled by default when ecmaVersion >= 2022 #1040

Merged
merged 1 commit into from
May 31, 2021

Conversation

ota-meshi
Copy link
Contributor

ES2022 Top-level await have arrived at Stage 4.
This PR changes to enable allowAwaitOutsideFunction by default when ecmaVersion >= 2022.

References

Proposal: https://github.com/tc39/proposal-top-level-await
Stage update: tc39/proposals@99fa42a
Ecma262 update: tc39/ecma262#2408

@marijnh marijnh merged commit 7405bd1 into acornjs:master May 31, 2021
@marijnh
Copy link
Member

marijnh commented May 31, 2021

Thank you for implementing that.

@ota-meshi ota-meshi deleted the top-level-await branch May 31, 2021 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants