mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 18:55:30 +00:00
No bug - Change |if (length)| -> |if (length > 0)| in InitRestParameter. (r=djvj)
This commit is contained in:
parent
4c7bfaf0a1
commit
fc354270fd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user