summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/ion/bug925067-2.js
blob: e56e7c9a51839426429f006fb667b01b7ebaf29f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| error: 4
function g(o) {
    if (o.x >= 0) {
	for(;;)
	    o.next();
    }
    return o.x;
}
function f() {
    var o = {x: 0, next: function() {
	if (this.x++ > 100)
	    throw 4;
    }};
    g(o);
}
f();