Sign in
webkit
/
WebKit
/
eb01a7e76a5b8904fa6eb36e240d0af2b1bec526
/
.
/
JSTests
/
es6
/
miscellaneous_subclassables_Map_is_subclassable.js
blob: 0a0c68c4571ac087a94d91455131bb785280c6c1 [
file
] [
log
] [
blame
]
function
test
()
{
var
key
=
{};
class
M extends
Map
{}
var
map
=
new
M
();
map
.
set
(
key
,
123
);
return
map
.
has
(
key
)
&&
map
.
get
(
key
)
===
123
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);