summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrays/bug1693328.js
blob: 2494dbe2b0fa18be42bff8b059928bbd8fc91f26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function bar() {}

function foo() {
    const v2 = [0,0];
    v2[16777217] = "a";
    v2.length = 2;
    bar(...v2);
}

for (var i = 0; i < 100; i++) {
    foo();
}