tor-browser

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

bug1719884.js (394B)


      1 // |jit-test| --fast-warmup; --no-threads
      2 
      3 var always_true = true;
      4 var unused = 3;
      5 
      6 function foo(input, trigger) {
      7  if (trigger) {
      8    return Math.atan2(always_true ? Math.trunc(input ** -0x80000001)
      9                                  : unused,
     10                      +input);
     11  }
     12 }
     13 
     14 with ({}) {}
     15 for (var i = 0; i < 100; i++) {
     16    foo(1, i == 15);
     17 }
     18 
     19 assertEq(foo(-Infinity, true), -Math.PI);