Files
test-repo/tests/format/js/babel-plugins/optional-catch-binding.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
270 B
JavaScript
Raw Normal View History

2020-05-29 09:26:52 +08:00
// https://babeljs.io/docs/en/babel-plugin-proposal-optional-catch-binding
try {
throw 0;
} catch {
doSomethingWhichDoesNotCareAboutTheValueThrown();
}
try {
throw 0;
} catch {
doSomethingWhichDoesNotCareAboutTheValueThrown();
} finally {
doSomeCleanup();
}