No bug - Change |if (length)| -> |if (length > 0)| in InitRestParameter. (r=djvj)

This commit is contained in:
Shu-yu Guo 2013-05-29 16:36:05 -07:00
parent 4c7bfaf0a1
commit fc354270fd

View File

@ -685,7 +685,7 @@ InitRestParameter(JSContext *cx, uint32_t length, Value *rest, HandleObject temp
// Fast path: we managed to allocate the array inline; initialize the
// slots.
if (length) {
if (length > 0) {
if (!res->ensureElements(cx, length))
return NULL;
res->setDenseInitializedLength(length);