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