Sign in
webkit
/
WebKit
/
246a932bc3d8d389a5826db666e02a3330ed90e1
/
.
/
JSTests
/
es6
/
WeakSet_constructor_arguments.js
blob: d6b6b33c7dac45206ef8f2df9cd9559d9a7ffe96 [
file
] [
log
] [
blame
]
function
test
()
{
var
obj1
=
{},
obj2
=
{};
var
weakset
=
new
WeakSet
([
obj1
,
obj2
]);
return
weakset
.
has
(
obj1
)
&&
weakset
.
has
(
obj2
);
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);