summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/recover-newarrayiterator-close.js
blob: 43d3b99b5f8691dd30a8854113a98e26e86a6170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| --no-threads
"use strict";

function test() {
    for (var k = 0; k < 35; ++k) {
        try {
            (function (x) {
                (x ? 0 : ([y] = []));
            })();
        } catch (e) {}
    }
}

for (var i = 0; i < 35; i++)
    test();