-
Couldn't load subscription status.
- Fork 13.1k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created
Description
TypeScript Version: 3.1.6
Search Terms: for await, es2018, target
Code
export = async function() {
for await (let x of []) {
// Do something async here
}
}Expected behavior: For the ES2018 target to not use polyfills for the for await syntax.
As per tc39/proposal-async-iteration#131 (comment) it is in ES2018
Actual behavior: Uses polyfills
Playground Link: Can't. The playground targets a version that is unknown and not configurable in order to show the issue
Related Issues:
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created