From 62311832e964ac30a75efacaa53ed93039d7d7a6 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 17 Jun 2019 12:47:15 +0000 Subject: Fix a typo in ArraySliceOrdinary --- js/src/jsarray.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/src/jsarray.cpp') diff --git a/js/src/jsarray.cpp b/js/src/jsarray.cpp index 20284a047..913385f38 100644 --- a/js/src/jsarray.cpp +++ b/js/src/jsarray.cpp @@ -2828,7 +2828,7 @@ ArraySliceOrdinary(JSContext* cx, HandleObject obj, uint32_t length, uint32_t be MOZ_ASSERT(count >= narr->as().length()); narr->as().setLength(cx, count); - if (count > 0) { + if (count) { narr->as().setDenseInitializedLength(begin + count); const Value* vp = obj->as().getDenseElements() + begin; narr->as().initDenseElements(begin, vp, count); -- cgit v1.2.3