Bug 605295: Return boolean values from JSStackFrame::computeThis, not random stuff that converts silently to bool. r=waldo

This commit is contained in:
Jim Blandy 2011-02-09 10:20:54 -08:00
parent 314aa75aac
commit 54decafd0c

View File

@ -373,9 +373,9 @@ JSStackFrame::computeThis(JSContext *cx)
JS_ASSERT(!isEvalFrame()); JS_ASSERT(!isEvalFrame());
} }
if (!js::BoxThisForVp(cx, &thisv - 1)) if (!js::BoxThisForVp(cx, &thisv - 1))
return NULL; return false;
JS_ASSERT(IsSaneThisObject(thisv.toObject())); JS_ASSERT(IsSaneThisObject(thisv.toObject()));
return &thisv.toObject(); return true;
} }
inline JSObject & inline JSObject &