-
-
Notifications
You must be signed in to change notification settings - Fork 224
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: Top-Level awaitに対応 #1374
feat: Top-Level awaitに対応 #1374
Conversation
✔️ Deploy Preview for js-primer ready! 🔨 Explore the source changes: 941f2a6 🔍 Inspect the deploy log: https://app.netlify.com/sites/js-primer/deploys/61d83df6e23c18000827f07c 😎 Browse the preview: https://deploy-preview-1374--js-primer.netlify.app |
Top-Level |
|
||
<!-- Top-Level awaitをVM2がサポートしていないため --> | ||
<!-- js-console:{ "type": "module" } --> | ||
<!-- doctest:disable --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VM2で結局実行できないので
Top-Level
await
ES2021までは、
await
式はAsync Functionの直下でのみしか利用できませんでした。ES2022には、これに加えてModuleの直下ではAsync Functionで囲まなくても
await
式が利用できます。fix #1373
fix #1365