tor-browser

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

recover-string-from-charcode.js (248B)


      1 // |jit-test| --fast-warmup; --ion-offthread-compile=off
      2 
      3 function foo(n, trigger) {
      4  let result = String.fromCharCode(n * -1);
      5  if (trigger) {
      6    assertEq(result, "\0");
      7  }
      8 }
      9 
     10 for (var i = 0; i < 100; i++) {
     11  foo(-50, false);
     12 }
     13 foo(0, true);