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

fix: allow top-level await support #212

Merged
merged 2 commits into from
Jan 31, 2022
Merged

Conversation

voxpelli
Copy link
Member

@voxpelli voxpelli commented Jan 31, 2022

Turns out we should have set the parserOptionsto 2022 rather than 2021.

This PR fixes that + adds a test for it 👍

Fixes standard/standard#1548

Copy link
Contributor

@theoludwig theoludwig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! 👍

It is what I thought here: #193 (comment)
But somehow 2022 didn't exist yet.

@theoludwig theoludwig changed the title Fix top level await support in 17.0.0pre-release fix: allow top-level await support Jan 31, 2022
@theoludwig theoludwig merged commit f364e98 into master Jan 31, 2022
@theoludwig theoludwig deleted the fix-top-level-await-support branch January 31, 2022 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Parsing error: Cannot use keyword 'await' outside an async function
2 participants