Fix typo in ArrayShiftMoveElements

This commit is contained in:
wolfbeast 2019-06-17 15:09:05 +00:00 • committed by Roy Tam
commit a7d7332c7b

View file

@ -2120,7 +2120,7 @@ js::ArrayShiftMoveElements(NativeObject* obj)
* decremented and the result fetched, so just shift the array elements * decremented and the result fetched, so just shift the array elements
* themselves. * themselves.
*/ */
obj->moveDenseElementsNoPreBarrier(0, 1, initlen - 1); obj->moveDenseElementsNoPreBarrier(0, 1, initlen);
} }
static inline void static inline void