return JS_FALSE; for (slot = newlen; slot < oldlen; slot++) { if (!IndexToId(cx, slot, &id2)) return JS_FALSE; if (!OBJ_DELETE_PROPERTY(cx, obj, id2, &junk)) return JS_FALSE;
return JS_FALSE; slot = oldlen; while (slot > newlen) { --slot; if (!IndexToId(cx, slot, &id2)) return JS_FALSE; if (!OBJ_DELETE_PROPERTY(cx, obj, id2, &junk)) return JS_FALSE;
array_length_setter(JSContext *cx, JSObject *obj, jsval id, jsval *vp){    jsuint newlen, oldlen, slot;    jsid id2;    jsval junk;    if (!ValueIsLength(cx, *vp, &newlen))	return JS_FALSE;    if (!js_GetLengthProperty(cx, obj, &oldlen))	return JS_FALSE;    for (slot = newlen; slot < oldlen; slot++) {	if (!IndexToId(cx, slot, &id2))	    return JS_FALSE;	if (!OBJ_DELETE_PROPERTY(cx, obj, id2, &junk))	    return JS_FALSE;    }    return IndexToValue(cx, newlen, vp);}