Sign in
webkit
/
WebKit
/
293423b2e3bc99a3b6b08c9e39c59d8eb89f00e1
/
.
/
JSTests
/
es6
/
WeakSet_basic_functionality.js
blob: d1831b36fcd2b04fd268b600527a7e609b550f38 [
file
] [
log
] [
blame
]
function
test
()
{
var
obj1
=
{};
var
weakset
=
new
WeakSet
();
weakset
.
add
(
obj1
);
weakset
.
add
(
obj1
);
return
weakset
.
has
(
obj1
);
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);