From c80816727fec126f46a57a0b14e5423575df8bed Mon Sep 17 00:00:00 2001 From: Brian Hackett Date: Wed, 9 Nov 2011 09:59:09 -0800 Subject: [PATCH] PropertyCache::fullTest should work on arbitrary scope chains, bug 700792. --- js/src/jspropertycache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jspropertycache.cpp b/js/src/jspropertycache.cpp index e6a588e17de..9b60059f1f8 100644 --- a/js/src/jspropertycache.cpp +++ b/js/src/jspropertycache.cpp @@ -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;