Skip to content

Commit

Permalink
merge asyncExplicitResourceManagement with explicitResourceManagement
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Apr 30, 2023
1 parent 1604738 commit 9c59287
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": ["asyncExplicitResourceManagement"]
"plugins": ["explicitResourceManagement"]
}
1 change: 0 additions & 1 deletion packages/babel-parser/data/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@
{
"enum": [
"asyncDoExpressions",
"asyncExplicitResourceManagement",
"asyncGenerators",
"bigInt",
"classPrivateMethods",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parser/statement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export default abstract class StatementParser extends ExpressionParser {
next = this.nextTokenInLineStartSince(next + 5);
const nextCh = this.codePointAtPos(next);
if (this.chStartsBindingIdentifier(nextCh, next)) {
this.expectPlugin("asyncExplicitResourceManagement");
this.expectPlugin("explicitResourceManagement");
return true;
}
}
Expand Down
1 change: 0 additions & 1 deletion packages/babel-parser/src/typings.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export type Plugin =
| "asyncDoExpressions"
| "asyncExplicitResourceManagement"
| "asyncGenerators"
| "bigInt"
| "classPrivateMethods"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"throws": "This experimental syntax requires enabling the parser plugin: \"asyncExplicitResourceManagement\". (2:2)"
"throws": "This experimental syntax requires enabling the parser plugin: \"explicitResourceManagement\". (2:2)"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": ["asyncExplicitResourceManagement"]
"plugins": ["explicitResourceManagement"]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": ["asyncExplicitResourceManagement", "explicitResourceManagement"]
"plugins": ["explicitResourceManagement"]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": ["asyncExplicitResourceManagement", "explicitResourceManagement"]
"plugins": ["explicitResourceManagement"]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": ["asyncExplicitResourceManagement", "explicitResourceManagement"]
"plugins": ["explicitResourceManagement"]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"sourceType": "script",
"plugins": ["asyncExplicitResourceManagement", "moduleBlocks"]
"plugins": ["explicitResourceManagement", "moduleBlocks"]
}

0 comments on commit 9c59287

Please sign in to comment.