tor-browser

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

delete-all-dict-props.js (313B)


      1 function f(o) {
      2    for (var i = 0; i < 100; i++) {
      3        o["a" + i] = i;
      4    }
      5    for (var i = 0; i < 100; i++) {
      6        delete o["a" + i];
      7    }
      8    o.x = 123;
      9    assertEq(Object.keys(o).length, 1);
     10 }
     11 f({});
     12 f([]);
     13 let obj = newObjectWithManyReservedSlots();
     14 f(obj);
     15 checkObjectWithManyReservedSlots(obj);