babel-plugin-transform-optional-catch-binding
Optional catch binding enables the catch block to execute whether or not an argument is passed to the catch statement (CatchClause).
Examples
try throw 0; catch ;
try throw 0; catch ; finally ;
Installation
npm install --save-dev babel-plugin-transform-optional-catch-binding
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
babel --plugins transform-optional-catch-binding script.js
Via Node API
;