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

feat: create template.asyncExpression #405

Merged
merged 1 commit into from
Jun 26, 2021

Conversation

jedwards1211
Copy link
Contributor

@jedwards1211 jedwards1211 commented Dec 21, 2020

allows things like asyncExpression`foo ? await bar : baz`

I was tempted to make expression itself support this, but it has to wrap the code in async () => (...), and theoretically some user-supplied parsers might not support async functions.

@Daniel15 Daniel15 merged commit 31bab3a into facebook:master Jun 26, 2021
@Daniel15
Copy link
Member

Published this in 0.13.0. Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants