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