summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1001090-4.js
blob: a94048af46d5c36e2bdd0c35635d4490a1b9b0d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
var output = [];
function g(s) {
    for (var i = 0; i < s.length; i++) {
        s.charAt()
    }
}
function h(f, inputs) {
    results = []
    for (var j = 0; j < 99; ++j) {
        for (var k = 0; k < 99; ++k) {
            try {
                results.push(f())
            } catch (e) {}
        }
    }
    g(JSON.stringify(results))
}
try {
    x()
} catch (e) {}
m = function(y) {
    return y;
};
h(m, []);
try {
    output.push(b);
    let b = "";
} catch (e) {}

assertEq(output.length, 0);