Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
collections
/
Set-add-returns-this.js
blob: 88806b8d877d59b45b792ac68128612cbdfac8df [
file
] [
log
] [
blame
]
// Bug 1031632 - Map.prototype.set, WeakMap.prototype.set and
// Set.prototype.add should be chainable
var
s
=
new
Set
();
assertEq
(
s
.
add
(
'BAR'
),
s
);
var
b
=
s
.
add
(
'foo'
).
has
(
'foo'
);
assertEq
(
b
,
true
);