No bug - Return 'false' instead of 'NULL' from ContextStack::pushExecuteFrame.

This commit is contained in:
Ms2ger 2012-01-02 19:05:19 +01:00
parent 74356d6f43
commit 8a83bebdd9

View File

@ -758,7 +758,7 @@ ContextStack::pushDummyFrame(JSContext *cx, JSCompartment *dest, JSObject &scope
uintN nvars = VALUES_PER_STACK_FRAME;
Value *firstUnused = ensureOnTop(cx, REPORT_ERROR, nvars, CAN_EXTEND, &dfg->pushedSeg_, dest);
if (!firstUnused)
return NULL;
return false;
StackFrame *fp = reinterpret_cast<StackFrame *>(firstUnused);
fp->initDummyFrame(cx, scopeChain);