Bug 612292 - Rename array allocation functions (r=lw)

This commit is contained in:
Paul Biggar
2010-12-13 16:22:59 -08:00
parent be66575362
commit 030b5d78ed
16 changed files with 196 additions and 183 deletions

View File

@@ -165,7 +165,7 @@ NewKeyValuePair(JSContext *cx, jsid id, const Value &val, Value *rval)
Value vec[2] = { IdToValue(id), val };
AutoArrayRooter tvr(cx, JS_ARRAY_LENGTH(vec), vec);
JSObject *aobj = js_NewArrayObject(cx, 2, vec);
JSObject *aobj = NewDenseCopiedArray(cx, 2, vec);
if (!aobj)
return false;
rval->setObject(*aobj);