tor-browser

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

write-frozen-dense-strict-inlinecache.js (386B)


      1 // |jit-test| --no-threads; --ion-eager;
      2 setJitCompilerOption('ion.forceinlineCaches', 1);
      3 function foo(t) {
      4    "use strict";
      5    var stop;
      6    do {
      7        let ok = false;
      8        stop = inIon();
      9        try {
     10            t[0] = 2;
     11        } catch(e) {
     12            ok = true;
     13        }
     14        assertEq(ok, true);
     15    } while (!stop);
     16 }
     17 var t = [4];
     18 Object.freeze(t);
     19 foo(t);
     20 foo(t);