Backed out changeset 7246c4dcf997 (bug 469625) due to trace-test.js failures.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user