mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
js_TryMethod suppresses 'too much recursion' exception, going in circles indefinitely (bug 547086, r=mrbkap).
This commit is contained in:
parent
4934b15e9e
commit
8afa0aa3fe
@ -6395,9 +6395,9 @@ js_TryMethod(JSContext *cx, JSObject *obj, JSAtom *atom,
|
||||
id = ATOM_TO_JSID(atom);
|
||||
fval = JSVAL_VOID;
|
||||
ok = js_GetMethod(cx, obj, id, JSGET_NO_METHOD_BARRIER, &fval);
|
||||
if (!ok)
|
||||
JS_ClearPendingException(cx);
|
||||
JS_SetErrorReporter(cx, older);
|
||||
if (!ok)
|
||||
return false;
|
||||
|
||||
if (JSVAL_IS_PRIMITIVE(fval))
|
||||
return JS_TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user