Sign in
webkit
/
WebKit
/
07d93176ad085e8b12e6369a18ce39856d96c516
/
.
/
JSTests
/
es6
/
miscellaneous_subclassables_Set_is_subclassable.js
blob: 36e235b7b1fb2f0817a38b4c9e0570163de5efe3 [
file
] [
log
] [
blame
]
function
test
()
{
var
obj
=
{};
class
S extends
Set
{}
var
set
=
new
S
();
set
.
add
(
123
);
set
.
add
(
123
);
return
set
.
has
(
123
);
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);