On 10/18/17 11:54 AM, David Teller wrote:
Mmmh... I was looking at setPendingException at
http://searchfox.org/mozilla-central/source/js/src/jscntxtinlines.h#435

That will allow you to hook all exceptions, sure, including ones caught by try/catch.

My idea would be to do it even on caught errors. It is too easy to catch
errors accidentally, in particular in Promise.

OK. Then you need to do this in the JS engine, indeed, because catch happens entirely inside the JS engine.

-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to