Bug 555686 scope is never used in JS_NextProperty

r=jorendorff

--HG--
extra : rebase_source : 65aaf4e7c50880e467fec4397bf9a514eee5dd38
This commit is contained in:
timeless@mozdev.org 2010-05-25 04:11:48 +03:00
Родитель 9c53f31632
Коммит 261888bbb9
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -3714,7 +3714,6 @@ JS_NextProperty(JSContext *cx, JSObject *iterobj, jsid *idp)
{
jsint i;
JSObject *obj;
JSScope *scope;
JSScopeProperty *sprop;
JSIdArray *ida;
@ -3724,12 +3723,11 @@ JS_NextProperty(JSContext *cx, JSObject *iterobj, jsid *idp)
/* Native case: private data is a property tree node pointer. */
obj = iterobj->getParent();
JS_ASSERT(obj->isNative());
scope = obj->scope();
sprop = (JSScopeProperty *) iterobj->getPrivate();
/*
* If the next property mapped by scope in the property tree ancestor
* line is not enumerable, or it's an alias, skip it and keep on trying
* If the next property in the property tree ancestor line is
* not enumerable, or it's an alias, skip it and keep on trying
* to find an enumerable property that is still in scope.
*/
while (sprop && (!sprop->enumerable() || sprop->isAlias()))