Closed bor closed 5 years ago
from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch
In Firefox 58, when the exception is unused, the identifier can be omitted, as in the code below. This is also allowed in TypeScript 2.5 and later. However, at the time of this writing (August 2018), the proposal to support this has not yet been included into an ECMAScript standard, so this syntax may not work in other browsers.
"SyntaxError: missing ( before catch"