Optional catch binding
Widely available since 2022-07-15
Omit the the binding parameter of a catch
clause when you don't need information about the exception in a try ... catch
statement.
Browser support
- Chrome 66 Released on 2018-04-17
- Chrome Android 66 Released on 2018-04-17
- Edge 79 Released on 2020-01-15
- Firefox 58 Released on 2018-01-23
- Firefox for Android 58 Released on 2018-01-22
- Safari 11.1 Released on 2018-04-12
- Safari on iOS 11.3 Released on 2018-03-29
Specifications
- ECMAScript Language Specification (#sec-try-statement), from TC39 (Ecma International).