mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Abort recording if js_FindIdentifierBase fails (567580, r=brendan).
This commit is contained in:
parent
7a314129ce
commit
827b329995
@ -13946,6 +13946,8 @@ TraceRecorder::record_JSOP_BINDNAME()
|
||||
JSAtom *atom = atoms[GET_INDEX(cx->regs->pc)];
|
||||
jsid id = ATOM_TO_JSID(atom);
|
||||
JSObject *obj2 = js_FindIdentifierBase(cx, fp->scopeChain, id);
|
||||
if (!obj2)
|
||||
RETURN_ERROR_A("error in js_FindIdentifierBase");
|
||||
if (obj2 != globalObj && obj2->getClass() != &js_CallClass)
|
||||
RETURN_STOP_A("BINDNAME on non-global, non-call object");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user