tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

callic.js (385B)


      1 /* Recompilation while being processed by a call IC. */
      2 
      3 var g;
      4 function foo() {
      5  for (g = 0; g < 5; g++) {
      6    bar();
      7  }
      8  function bar() {
      9    with ({}) {
     10      eval("g = undefined;");
     11    }
     12  }
     13 }
     14 foo();
     15 
     16 assertEq(g, NaN);
     17 
     18 /* Recompilation while being processed by a native call IC. */
     19 
     20 function native() {
     21  var x;
     22  x = x;
     23  x = Math.ceil(NaN);
     24  assertEq(x, NaN);
     25 }
     26 native();