summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/try-catch-6.js
blob: f0c01048a0761695aa328dee0ff6d005bfa7e3bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var o = {
    valueOf: function() {}
};
var threw = false;
function test(t) {
    try {
        for (x[t++] in o) {}
    } catch (err) {
	assertEq(t, 3.14);
	threw = true;
    }
}
test(3.14);
assertEq(threw, true);