Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
collections
/
WeakSet-constructor.js
blob: a89e8fc0c856f968da683df05fd590970fc24e3a [
file
] [
log
] [
blame
]
var
list
=
[
Number
,
Function
];
var
ws
=
new
WeakSet
(
list
);
assertEq
(
ws
.
has
(
Number
),
true
);
assertEq
(
ws
.
has
(
Function
),
true
);
ws
=
new
WeakSet
(
new
Set
(
list
));
assertEq
(
ws
.
has
(
Number
),
true
);
assertEq
(
ws
.
has
(
Function
),
true
);