js/src/jit-test/tests/ion/bug925067-2.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:c20bc1b0f742
1 // |jit-test| error: 4
2 function g(o) {
3 if (o.x >= 0) {
4 for(;;)
5 o.next();
6 }
7 return o.x;
8 }
9 function f() {
10 var o = {x: 0, next: function() {
11 if (this.x++ > 100)
12 throw 4;
13 }};
14 g(o);
15 }
16 f();

mercurial