Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disallow of as a for-using-of binding
- Loading branch information
Showing
12 changed files
with
99 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
...erimental/explicit-resource-management/invalid-for-await-using-binding-of-of/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"sourceType": "module", | ||
"throws": "Unexpected token, expected \")\" (1:23)" | ||
} |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...es/experimental/explicit-resource-management/invalid-for-using-binding-of-of/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"throws": "Unexpected token, expected \")\" (1:17)" | ||
} |
1 change: 1 addition & 0 deletions
1
...mental/explicit-resource-management/valid-for-await-using-binding-escaped-of-of/input.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
for await (using \u006ff of of); |
File renamed without changes.
44 changes: 44 additions & 0 deletions
44
...ntal/explicit-resource-management/valid-for-await-using-binding-escaped-of-of/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"type": "File", | ||
"start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}}, | ||
"program": { | ||
"type": "Program", | ||
"start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}}, | ||
"sourceType": "module", | ||
"interpreter": null, | ||
"body": [ | ||
{ | ||
"type": "ForOfStatement", | ||
"start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}}, | ||
"await": true, | ||
"left": { | ||
"type": "VariableDeclaration", | ||
"start":11,"end":24,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":24,"index":24}}, | ||
"declarations": [ | ||
{ | ||
"type": "VariableDeclarator", | ||
"start":17,"end":24,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":24,"index":24}}, | ||
"id": { | ||
"type": "Identifier", | ||
"start":17,"end":24,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":24,"index":24},"identifierName":"of"}, | ||
"name": "of" | ||
}, | ||
"init": null | ||
} | ||
], | ||
"kind": "using" | ||
}, | ||
"right": { | ||
"type": "Identifier", | ||
"start":28,"end":30,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":30,"index":30},"identifierName":"of"}, | ||
"name": "of" | ||
}, | ||
"body": { | ||
"type": "EmptyStatement", | ||
"start":31,"end":32,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":32,"index":32}} | ||
} | ||
} | ||
], | ||
"directives": [] | ||
} | ||
} |
44 changes: 0 additions & 44 deletions
44
...experimental/explicit-resource-management/valid-for-await-using-binding-of-of/output.json
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
.../experimental/explicit-resource-management/valid-for-using-binding-escaped-of-of/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
for (using o\u0066 of of); |
44 changes: 44 additions & 0 deletions
44
...perimental/explicit-resource-management/valid-for-using-binding-escaped-of-of/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"type": "File", | ||
"start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}}, | ||
"program": { | ||
"type": "Program", | ||
"start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}}, | ||
"sourceType": "script", | ||
"interpreter": null, | ||
"body": [ | ||
{ | ||
"type": "ForOfStatement", | ||
"start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}}, | ||
"await": false, | ||
"left": { | ||
"type": "VariableDeclaration", | ||
"start":5,"end":18,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":18,"index":18}}, | ||
"declarations": [ | ||
{ | ||
"type": "VariableDeclarator", | ||
"start":11,"end":18,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":18,"index":18}}, | ||
"id": { | ||
"type": "Identifier", | ||
"start":11,"end":18,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":18,"index":18},"identifierName":"of"}, | ||
"name": "of" | ||
}, | ||
"init": null | ||
} | ||
], | ||
"kind": "using" | ||
}, | ||
"right": { | ||
"type": "Identifier", | ||
"start":22,"end":24,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":24,"index":24},"identifierName":"of"}, | ||
"name": "of" | ||
}, | ||
"body": { | ||
"type": "EmptyStatement", | ||
"start":25,"end":26,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":26,"index":26}} | ||
} | ||
} | ||
], | ||
"directives": [] | ||
} | ||
} |
44 changes: 0 additions & 44 deletions
44
...tures/experimental/explicit-resource-management/valid-for-using-binding-of-of/output.json
This file was deleted.
Oops, something went wrong.