summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1662146.js
blob: cfc62b98f20bcbb9b2a0d79767d016df1d23dd64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var sum = 0;
function f1(a) {
    try {
        not_a_function();
    } catch (e) {
        sum++;
    }
}
for (var i = 0; i < 50; ++i) {
    f1.call();
}
assertEq(sum, 50);