summaryrefslogtreecommitdiffstats
path: root/js/src
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-06-17 12:47:15 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-06-17 12:47:15 +0000
commit62311832e964ac30a75efacaa53ed93039d7d7a6 (patch)
tree3e21a2c83ebac34a615f3f72be105116905b4122 /js/src
parent6a8df073850b4855c833ac488a756bf189d82340 (diff)
downloadUXP-62311832e964ac30a75efacaa53ed93039d7d7a6.tar
UXP-62311832e964ac30a75efacaa53ed93039d7d7a6.tar.gz
UXP-62311832e964ac30a75efacaa53ed93039d7d7a6.tar.lz
UXP-62311832e964ac30a75efacaa53ed93039d7d7a6.tar.xz
UXP-62311832e964ac30a75efacaa53ed93039d7d7a6.zip
Fix a typo in ArraySliceOrdinary
Diffstat (limited to 'js/src')
-rw-r--r--js/src/jsarray.cpp2
1 files changed, 1 insertions, 1 deletions
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<ArrayObject>().length());
narr->as<ArrayObject>().setLength(cx, count);
- if (count > 0) {
+ if (count) {
narr->as<NativeObject>().setDenseInitializedLength(begin + count);
const Value* vp = obj->as<NativeObject>().getDenseElements() + begin;
narr->as<NativeObject>().initDenseElements(begin, vp, count);