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