Address bug 684507 review comments, r=luke.
This commit is contained in:
@@ -3905,12 +3905,10 @@ NewArray(JSContext *cx, jsuint length, JSObject *proto)
|
||||
if (!shape)
|
||||
return NULL;
|
||||
|
||||
JSObject* obj = js_NewGCObject(cx, kind);
|
||||
JSObject* obj = JSObject::createDenseArray(cx, kind, shape, type, length);
|
||||
if (!obj)
|
||||
return NULL;
|
||||
|
||||
obj->initializeDenseArray(shape, type, length);
|
||||
|
||||
if (entry != -1)
|
||||
cache.fillGlobal(entry, &ArrayClass, parent, kind, obj);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user