test262/implementation-contributed/javascriptcore/stress/array-lastindexof-fast-path...

12 lines
225 B
JavaScript

// This shouldn't crash when running with ASAN.
let arr = [];
for (var i = 0; i < 1000000; i++)
arr[i] = [];
arr.lastIndexOf(new Object(), {
valueOf: function () {
arr.length = 0;
return 0;
}
});