PropertyCache::fullTest should work on arbitrary scope chains, bug 700792.

This commit is contained in:
Brian Hackett 2011-11-09 09:59:09 -08:00
parent 831cd84d89
commit ca7d6003de

View File

@ -224,7 +224,7 @@ PropertyCache::fullTest(JSContext *cx, jsbytecode *pc, JSObject **objp, JSObject
if (JOF_MODE(cs.format) == JOF_NAME) {
while (vindex & (PCINDEX_SCOPEMASK << PCINDEX_PROTOBITS)) {
tmp = pobj->internalScopeChain();
tmp = pobj->scopeChain();
if (!tmp || !tmp->isNative())
break;
pobj = tmp;