Skip to content

Allow await in class static field context #43112

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

Conversation

Kingwl
Copy link
Contributor

@Kingwl Kingwl commented Mar 6, 2021

Fixes #43099

This PR allows await inside static class field context.

And seems yield could cross the class boundary but the function.

It's not match with out downgrade emit. So I haven't support yield.

@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Mar 6, 2021
@Kingwl Kingwl closed this Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Await in static field initializer
2 participants