tor-browser

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

same-stack.js (222B)


      1 // Test that the same saved stack is only ever allocated once.
      2 
      3 const stacks = [];
      4 
      5 for (let i = 0; i < 10; i++) {
      6  stacks.push(saveStack());
      7 }
      8 
      9 const s = stacks.pop();
     10 for (let stack of stacks) {
     11  assertEq(s, stack);
     12 }