Skip to content
Snippets Groups Projects
Commit 3c582186 authored by rswindell's avatar rswindell
Browse files

Global exit method now clears pending exceptions (from earlier error perhaps).

parent 8ea1098f
No related branches found
No related tags found
No related merge requests found
......@@ -158,6 +158,7 @@ js_beep(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
static JSBool
js_exit(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{
JS_ClearPendingException(cx);
*rval = JSVAL_VOID;
return(JS_FALSE);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment