summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrays/too-long-array-splice.js
blob: 7e3f9386c8e3f00e1d6805bf0e88bf6a53e087f5 (plain)
1
2
3
4
5
6
// |jit-test| allow-oom
// array.splice should throw if array.length is too large.

var length = 4294967295;
var array = new Array(length);
array.splice(100);