mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 605295: Return boolean values from JSStackFrame::computeThis, not random stuff that converts silently to bool. r=waldo
This commit is contained in:
parent
314aa75aac
commit
54decafd0c
@ -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 &
|
||||||
|
Loading…
Reference in New Issue
Block a user