Back out patch for bug 469625, it mysterious busts stuff.

This commit is contained in:
Brendan Eich
2008-12-19 01:32:48 -08:00
parent 30f8a78ce9
commit 162c7c43b6
5 changed files with 8 additions and 37 deletions

View File

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