Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Adding optionalCatchBinding to plugins. #521

Merged
merged 3 commits into from
Sep 26, 2017
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ exports.parseNoPatch = function(code, options) {
"importMeta",
"classPrivateProperties",
"bigInt",
"optionalCatchBinding",
],
};

Expand Down
11 changes: 11 additions & 0 deletions test/non-regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -1845,4 +1845,15 @@ describe("verify", () => {
[]
);
});

it("works with optionalCatchBinding", () => {
verifyAndAssertMessages(
unpad(`
try {} catch {}
try {} catch {} finally {}
`),
{},
[]
);
});
});