Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit b47ecf81 authored by deuce's avatar deuce

Don't leave a pending exception on exit from js_global_resolve().

parent a773189c
......@@ -4703,7 +4703,11 @@ static JSBool js_global_resolve(JSContext *cx, JSObject *obj, jsid id)
JS_IdToValue(cx, id, &idval);
if(JSVAL_IS_STRING(idval)) {
JSSTRING_TO_MSTRING(cx, JSVAL_TO_STRING(idval), name, NULL);
HANDLE_PENDING(cx, name);
if(JS_IsExceptionPending(cx)) {
JS_ClearPendingException(cx);
free(name);
return JS_FALSE;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment