Fix debug orange.

This commit is contained in:
David Anderson 2012-06-14 14:06:11 -07:00
parent be8c723c4e
commit 5b81587cff

View File

@ -877,7 +877,7 @@ GenerateScopeChainGuards(MacroAssembler &masm, JSObject *scopeChain, JSObject *h
// Walk up the scope chain. Note that IsCacheableScopeChain guarantees the
// |tobj == holder| condition terminates the loop.
while (true) {
JS_ASSERT(IsCacheableNonGlobalScope(tobj));
JS_ASSERT(IsCacheableNonGlobalScope(tobj) || tobj->isGlobal());
GenerateScopeChainGuard(masm, tobj, outputReg, NULL, failures);
if (tobj == holder)