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