Fix incorrect test in FindIdentifierBase, bug 694247.

This commit is contained in:
Brian Hackett 2011-10-25 08:48:22 -07:00
parent 41e18127a7
commit f90413cb77

View File

@ -5825,7 +5825,7 @@ js_FindIdentifierBase(JSContext *cx, JSObject *scopeChain, jsid id)
if (!parent)
break;
obj = parent;
} while (obj->isScope());
} while (!obj->isGlobal());
return obj;
}