Bug 635805 - Fix thinko in fix for bug 634542 (r=dvander,a=blocking-a-blocker)

This commit is contained in:
Luke Wagner 2011-02-21 19:36:27 -08:00
parent a47d50013b
commit b40fed9201

View File

@ -624,7 +624,9 @@ RunScript(JSContext *cx, JSScript *script, JSStackFrame *fp)
int32 flags = fp->scopeChain().getGlobal()->getReservedSlot(JSRESERVED_GLOBAL_FLAGS).toInt32();
if (flags & JSGLOBAL_FLAGS_CLEARED) {
JS_ReportErrorNumber(cx, js_GetErrorMessage, NULL, JSMSG_CLEARED_SCOPE);
PutActivationObjects(cx, fp);
// FIXME Remove hack with bug 635811
if (fp->isFunctionFrame() && (!fp->isEvalFrame() || fp->script()->strictModeCode))
PutActivationObjects(cx, fp);
return false;
}
}