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
Branches
Tags
No related merge requests found
...@@ -158,6 +158,7 @@ js_beep(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) ...@@ -158,6 +158,7 @@ js_beep(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
static JSBool static JSBool
js_exit(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) js_exit(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{ {
JS_ClearPendingException(cx);
*rval = JSVAL_VOID; *rval = JSVAL_VOID;
return(JS_FALSE); return(JS_FALSE);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment