zenparsing / es6now

ECMAScript 6 to 5 Compiler and Runtime Environment
MIT License
29 stars 2 forks source link

Async For/Of #34

Closed zenparsing closed 10 years ago

zenparsing commented 10 years ago

We are currently using the function context to determine whether to make for/of async-compatible. We need to use explicit syntax for this.

For now, let's try using something like:

for async (let item of collection) {
    // ...
}

For the implementation, let's try this:

zenparsing commented 10 years ago

Done