Bug 858705 - Use newKind parameter. r=terrence

This commit is contained in:
Benjamin Peterson 2013-04-05 17:47:56 -04:00
parent b98a20274f
commit 936377111b

View File

@ -2725,7 +2725,7 @@ JSObject * JS_FASTCALL
js::NewDenseEmptyArray(JSContext *cx, RawObject proto /* = NULL */,
NewObjectKind newKind /* = GenericObject */)
{
return NewArray<false>(cx, 0, proto);
return NewArray<false>(cx, 0, proto, newKind);
}
JSObject * JS_FASTCALL
@ -2739,7 +2739,7 @@ JSObject * JS_FASTCALL
js::NewDenseUnallocatedArray(JSContext *cx, uint32_t length, RawObject proto /* = NULL */,
NewObjectKind newKind /* = GenericObject */)
{
return NewArray<false>(cx, length, proto);
return NewArray<false>(cx, length, proto, newKind);
}
#ifdef JS_METHODJIT