Conservatively track modifications along the prototype chain of arrays (469625, r=jorendorff).

This commit is contained in:
2009-01-28 16:16:20 -08:00
parent faeed8586d
commit e0b7cfb83a
4 changed files with 35 additions and 8 deletions

View File

@@ -833,8 +833,6 @@ array_defineProperty(JSContext *cx, JSObject *obj, jsid id, jsval value,
if (!isIndex || attrs != JSPROP_ENUMERATE) {
if (!ENSURE_SLOW_ARRAY(cx, obj))
return JS_FALSE;
if (isIndex && STOBJ_IS_DELEGATE(obj))
cx->runtime->anyArrayProtoHasElement = JS_TRUE;
return js_DefineProperty(cx, obj, id, value, getter, setter, attrs, propp);
}