Skip to content

Commit 348fd9e

Browse files
committed
remove invalid JS according to newest spec
which will cause SyntaxError: The left-hand side of a for-of loop may not be 'async' refer to https://tc39.es/ecma262/#sec-for-in-and-for-of-statements
1 parent ea54839 commit 348fd9e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

js-quirks.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,6 @@ to make it a little less confusing.)
361361
362362
```js
363363
for (async of => {};;) {}
364-
for (async of []) {}
365364
```
366365
367366
In the first line, `async` is a keyword and `of` is an identifier;

0 commit comments

Comments
 (0)