Bug 469625 - TM: Crash [@ js_String_getelem] (r=jorendorff).

This commit is contained in:
Brendan Eich
2008-12-18 22:35:46 -08:00
parent 4eaaa6b846
commit 9ec795bb52
5 changed files with 37 additions and 8 deletions

View File

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