Sign in
webkit
/
WebKit
/
437f2c5aff768557a26b18335a7cb15e0dbc5120
/
.
/
JSTests
/
es6
/
WeakSet_no_WeakSet.prototype.clear_method.js
blob: fa5f13e155737cc79fef1e6ced8b81d7c4acc4f1 [
file
] [
log
] [
blame
]
function
test
()
{
if
(!(
"clear"
in
WeakSet
.
prototype
))
{
return
true
;
}
var
s
=
new
WeakSet
();
var
key
=
{};
s
.
add
(
key
);
s
.
clear
();
return
s
.
has
(
key
);
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);