diff --git a/js/src/jstracer.cpp b/js/src/jstracer.cpp index 7aac6fd87a8..37e6ec30398 100644 --- a/js/src/jstracer.cpp +++ b/js/src/jstracer.cpp @@ -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");