Backed out changeset 7246c4dcf997 (bug 469625) due to trace-test.js failures.

This commit is contained in:
2009-01-28 22:26:46 -05:00
parent e0b7cfb83a
commit ebf182739e
4 changed files with 8 additions and 35 deletions

View File

@@ -833,6 +833,8 @@ 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);
}