summaryrefslogtreecommitdiffstats
path: root/js
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
parentef8e0ce6075150ed4501edad1376e4046cd8e3cb (diff)
downloadUXP-9153838ea299da3bd00767394ff021318c1e0f12.tar
UXP-9153838ea299da3bd00767394ff021318c1e0f12.tar.gz
UXP-9153838ea299da3bd00767394ff021318c1e0f12.tar.lz
UXP-9153838ea299da3bd00767394ff021318c1e0f12.tar.xz
UXP-9153838ea299da3bd00767394ff021318c1e0f12.zip
Fix typo in ArrayShiftMoveElements
Diffstat (limited to 'js')
-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 9abc99e34..7af7c9800 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