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