-
Notifications
You must be signed in to change notification settings - Fork 532
Open
Description
There are currently two tests which show the fallback behaviour of using as variable identifiers
Lines 11 to 15 in dc0a351
| var using = [], x = 0; | |
| { | |
| using[x] = null; | |
| } |
Lines 15 to 17 in dc0a351
| asyncTest(async function () { | |
| await using[x]; | |
| }); |
I was looking whether there were similar tests for the for (using x of|in ...) feature but I could not find anything.
Running two on Safari (so webkit). The following parses as variable using
for (using = 0; using < 2; using += 1) console.log(0, using)This next case parses if and only it is inside a async function
for (await using; using < 4; using += 1) console.log(1, using)I haven't looked at the specification. It might be consulting that before adding tests for these. I can add a PR once details are known.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels