Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions js-quirks.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,11 @@ to make it a little less confusing.)
Amazingly, both of the following are valid JS code:

```js
for (async of => {};;) {}
for (async of []) {}
Comment thread
Archkon marked this conversation as resolved.
for (using of = resource;;) {}
for (using of []) {}
```

In the first line, `async` is a keyword and `of` is an identifier;
In the first line, `using` is a keyword and `of` is an identifier;
in the second line it's the other way round.

Even a simplified JS grammar can't be LR(1) as long as it includes
Expand Down