When calling shift on a huge, mostly empty Array, other elements sometimes keep their index, even though the shift operation seemingly succeeds. See the test case in https://bugzilla.mozilla.org/show_bug.cgi?id=1158767.