Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
collections
/
Map-set-returns-this.js
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'
);