tor-browser

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

propertyTreeSplitting.js (628B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 tests.set(
      6  "propertyTreeSplitting",
      7  (function() {
      8    var garbage = [];
      9    var garbageIndex = 0;
     10    var obj = {};
     11    return {
     12      description: "use delete to generate Shape garbage (piles are unused)",
     13      load: N => {},
     14      unload: () => {},
     15      makeGarbage: N => {
     16        for (var a = 0; a < N; ++a) {
     17          obj.x = 1;
     18          obj.y = 2;
     19          delete obj.x;
     20        }
     21      },
     22    };
     23  })()
     24 );