Sign in
webkit
/
WebKit
/
e146947e3de2db01460172509f724ad9a1d99ced
/
.
/
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"
);