summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-06-17 00:38:02 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-06-17 00:38:02 +0000
commit6a8df073850b4855c833ac488a756bf189d82340 (patch)
tree5a06d8054000f07b5f35575975876b58e525591c
parentf2c8fc62a62f1866a2716bcef449cd344feac164 (diff)
downloadUXP-6a8df073850b4855c833ac488a756bf189d82340.tar
UXP-6a8df073850b4855c833ac488a756bf189d82340.tar.gz
UXP-6a8df073850b4855c833ac488a756bf189d82340.tar.lz
UXP-6a8df073850b4855c833ac488a756bf189d82340.tar.xz
UXP-6a8df073850b4855c833ac488a756bf189d82340.zip
Fix typo in ArrayShiftMoveElements
-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 0cd46ea36..20284a047 100644
--- a/js/src/jsarray.cpp
+++ b/js/src/jsarray.cpp
@@ -2113,7 +2113,7 @@ js::ArrayShiftMoveElements(NativeObject* obj)
* decremented and the result fetched, so just shift the array elements
* themselves.
*/
- obj->moveDenseElementsNoPreBarrier(0, 1, initlen - 1);
+ obj->moveDenseElementsNoPreBarrier(0, 1, initlen);
}
static inline void