Sign in
webkit
/
WebKit
/
8811b522c4d9fd9fbebc2e2caf8f1ebff78163f9
/
.
/
JSTests
/
es6
/
Set_constructor_arguments.js
blob: b7409041a40c1b62fd94b0c7acbe50ff179e3cf8 [
file
] [
log
] [
blame
]
function
test
()
{
var
obj1
=
{};
var
obj2
=
{};
var
set
=
new
Set
([
obj1
,
obj2
]);
return
set
.
has
(
obj1
)
&&
set
.
has
(
obj2
);
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);