3 ms·
I'd be more ok with it being paired with exception filtering (or what Netscape called conditional catch clauses), ie. } catch (e if e instanceof CriticalEr
by nikcub 9y ago
I'd be more ok with it being paired with exception filtering (or what Netscape called conditional catch clauses), ie.
} catch (e if e instanceof CriticalError) {
// handle critical
} catch (e if e instanceof TypeError) {
// handle type mismatch
} catch () {
}
so you could at least handle critical and other errors before blindly silencing - but for some reason exception filtering/conditional catch hasn't come up in ECMA