Skip to content

Commit f768c6b

Browse files
committed
Update conditional keyword examples
1 parent 348fd9e commit f768c6b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

js-quirks.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,11 @@ to make it a little less confusing.)
360360
Amazingly, both of the following are valid JS code:
361361
362362
```js
363-
for (async of => {};;) {}
363+
for (using of = resource;;) {}
364+
for (using of []) {}
364365
```
365366
366-
In the first line, `async` is a keyword and `of` is an identifier;
367+
In the first line, `using` is a keyword and `of` is an identifier;
367368
in the second line it's the other way round.
368369
369370
Even a simplified JS grammar can't be LR(1) as long as it includes

0 commit comments

Comments
 (0)