Backed out changeset 5bd116148175 (attempting to re-land bug 487204).

This commit is contained in:
Andreas Gal
2009-04-16 17:56:18 -07:00
parent 0cc8abe941
commit 4b29f0e1c1
9 changed files with 234 additions and 185 deletions

View File

@@ -793,8 +793,9 @@ array_getProperty(JSContext *cx, JSObject *obj, jsid id, jsval *vp)
sprop = (JSScopeProperty *) prop;
if (!js_NativeGet(cx, obj, obj2, sprop, vp))
return JS_FALSE;
} else {
OBJ_DROP_PROPERTY(cx, obj2, prop);
}
OBJ_DROP_PROPERTY(cx, obj2, prop);
}
return JS_TRUE;
}
@@ -1291,7 +1292,7 @@ js_MakeArraySlow(JSContext *cx, JSObject *obj)
sprop = js_AddScopeProperty(cx, (JSScope *)map, id, NULL, NULL,
i + JS_INITIAL_NSLOTS, JSPROP_ENUMERATE,
0, 0);
0, 0, NULL);
if (!sprop)
goto out_bad;
}