1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/ion/bug925067-2.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,16 @@ 1.4 +// |jit-test| error: 4 1.5 +function g(o) { 1.6 + if (o.x >= 0) { 1.7 + for(;;) 1.8 + o.next(); 1.9 + } 1.10 + return o.x; 1.11 +} 1.12 +function f() { 1.13 + var o = {x: 0, next: function() { 1.14 + if (this.x++ > 100) 1.15 + throw 4; 1.16 + }}; 1.17 + g(o); 1.18 +} 1.19 +f();