tor-browser

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

Map-set-returns-this.js (217B)


      1 // Bug 1031632 - Map.prototype.set, WeakMap.prototype.set and
      2 // Set.prototype.add should be chainable
      3 
      4 var m = new Map();
      5 assertEq(m.set('oof', 'RAB'), m);
      6 var a = m.set('foo', 'BAR').get('foo');
      7 assertEq(a, 'BAR');