From fc354270fd4a36c7974073b1b1b346b12f297efc Mon Sep 17 00:00:00 2001 From: Shu-yu Guo Date: Wed, 29 May 2013 16:36:05 -0700 Subject: [PATCH] No bug - Change |if (length)| -> |if (length > 0)| in InitRestParameter. (r=djvj) --- js/src/ion/VMFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/ion/VMFunctions.cpp b/js/src/ion/VMFunctions.cpp index 620783018f30..9db927d1795b 100644 --- a/js/src/ion/VMFunctions.cpp +++ b/js/src/ion/VMFunctions.cpp @@ -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);