upvar2, aka the big one take 2 (452598, r=mrbkap).

This commit is contained in:
Brendan Eich
2009-04-05 21:17:22 -07:00
parent 35335b6136
commit 2d2a5dfe04
49 changed files with 6202 additions and 2552 deletions

View File

@@ -3277,7 +3277,7 @@ js_FastNewArrayWithLength(JSContext* cx, JSObject* proto, uint32 i)
JSObject* FASTCALL
js_NewUninitializedArray(JSContext* cx, JSObject* proto, uint32 len)
{
JSObject *obj = js_FastNewArrayWithLength(cx, proto, len);
JSObject* obj = js_FastNewArrayWithLength(cx, proto, len);
if (!obj || !ResizeSlots(cx, obj, 0, JS_MAX(len, ARRAY_CAPACITY_MIN)))
return NULL;
return obj;