tor-browser

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

bug-1766656.js (503B)


      1 // |jit-test| error: Error
      2 
      3 const thisGlobal = this;
      4 const otherGlobalSameCompartment = newGlobal({sameCompartmentAs: thisGlobal});
      5 const globals = [thisGlobal, otherGlobalSameCompartment, undefined];
      6 function testProperties(global, count) {
      7  let {object: source, transplant} = transplantableObject();
      8  for (let i9 = 0; i9 < count; i9++) {
      9    source[(0) + i9] = i9;
     10  }
     11  transplant(global);
     12 }
     13 for (let global of globals) {
     14  for (let count of [0, 10, 30]) {
     15    testProperties(global, count);
     16  }
     17 }