summaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-06-17 15:09:05 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-06-17 15:09:05 +0000
commit9153838ea299da3bd00767394ff021318c1e0f12 (patch)
tree041dfcd70ccea775388369607dc437980b41d0b8 /js/src
parentef8e0ce6075150ed4501edad1376e4046cd8e3cb (diff)
downloaduxp-9153838ea299da3bd00767394ff021318c1e0f12.tar.gz
Fix typo in ArrayShiftMoveElements
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 9abc99e347..7af7c98001 100644
--- a/js/src/jsarray.cpp
+++ b/js/src/jsarray.cpp
@@ -2120,7 +2120,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