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');