Push an exception handler in context. Whenever a JavaScript exception happens in
the #JSCContext, the given handler will be called. The default #JSCExceptionHandler
simply calls javascriptcore.context.Context.throwException to throw the exception to the #JSCContext.
If you don't want to catch the exception, but only get notified about it, call
javascriptcore.context.Context.throwException in handler like the default one does.
The last exception handler pushed is the only one used by the #JSCContext, use
javascriptcore.context.Context.popExceptionHandler to remove it and set the previous one. When handler
is removed from the context, destroy_notify i called with user_data as parameter.
Push an exception handler in context. Whenever a JavaScript exception happens in the #JSCContext, the given handler will be called. The default #JSCExceptionHandler simply calls javascriptcore.context.Context.throwException to throw the exception to the #JSCContext. If you don't want to catch the exception, but only get notified about it, call javascriptcore.context.Context.throwException in handler like the default one does. The last exception handler pushed is the only one used by the #JSCContext, use javascriptcore.context.Context.popExceptionHandler to remove it and set the previous one. When handler is removed from the context, destroy_notify i called with user_data as parameter.