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