tor-browser

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

bug1989978-1.js (254B)


      1 // |jit-test| --no-threads
      2 
      3 function opt(a) {
      4  for (const it in a) {
      5    a[it] = 5;
      6  }
      7 }
      8 const obj = {};
      9 Object.defineProperty(obj, "x", {value: 1, enumerable: true, writable: false});
     10 for (let i = 0; i < 2000; i++) {
     11  opt(obj);
     12 }
     13 assertEq(obj.x, 1);