taustation-fan / university

Machine-readable data of University courses
https://education.tauguide.de/
3 stars 8 forks source link

fix syntax error #22

Closed bor closed 5 years ago

bor commented 5 years ago

"SyntaxError: missing ( before catch"

bor commented 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.