You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to register a global exception handler from within JS executed by CocoaScript?
In a typical environment, this can be done with addEventListener('error', …), but of course the global object doesn't have an addEventListener in a JSContext.
Peeking through the Mocha codebase, I didn't see an obvious place to do this. I see a setErrorController in your codebase, but it looks like that's being used in a REPL, not in the runtime itself.
The text was updated successfully, but these errors were encountered:
Is it possible to register a global exception handler from within JS executed by CocoaScript?
In a typical environment, this can be done with
addEventListener('error', …)
, but of course the global object doesn't have anaddEventListener
in a JSContext.Peeking through the Mocha codebase, I didn't see an obvious place to do this. I see a
setErrorController
in your codebase, but it looks like that's being used in a REPL, not in the runtime itself.The text was updated successfully, but these errors were encountered: