mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
16 lines
267 B
JavaScript
16 lines
267 B
JavaScript
// https://babeljs.io/docs/babel-plugin-proposal-optional-catch-binding
|
|
|
|
try {
|
|
throw 0;
|
|
} catch {
|
|
doSomethingWhichDoesNotCareAboutTheValueThrown();
|
|
}
|
|
|
|
try {
|
|
throw 0;
|
|
} catch {
|
|
doSomethingWhichDoesNotCareAboutTheValueThrown();
|
|
} finally {
|
|
doSomeCleanup();
|
|
}
|