blob: 2120b09a35d2fa00c1a611bacffe02dcf5645261 [file] [log] [blame]
// 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');