Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
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
);