JS XPCOM and error reporting (Bug 1044109 )

Ben Bucksch ben.bucksch at beonex.com
Fri Jul 1 01:54:43 UTC 2016

R Kent James wrote on 23.06.2016 19:48:
> Throws in JS should be reserved for cases where they are considered unexpected

That's always been the rule for exceptions, even in C++. Hence the name.
Stroustroup has even been fairly explicit about this.

> I'm not really happy about this, as JS exceptions can be useful. Are
> there reasonable alternatives here?

Can you give some representative examples that are common where you have 
the problem often?


More information about the tb-planning mailing list