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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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