Our current implementation doesn't allow user scripts to catch exceptions which are thrown while executing IDL callback functions. We should make sure this is OK or not.
Summary: Auto-generated bindings for IDL callback function use SetVerbose() internally (was: Make sure that not throwing exceptions while executing IDL callback functions)
Thanks for the comment. It seems that we already route exceptions to onerror.
For records:
- If a spec defines behavior, generated bindings for callback function needs to take an ExceptionState so that impl classes can follow the spec
- We don't have to pass an ExceptionState if routing exceptions to onerror is enough
At this point, routing exceptions to onerror seems enough.
Comment 1 by bashi@chromium.org
, Oct 7 2016