Sign in
webkit
/
WebKit
/
be9b4e2157fc5a81e712f3ea4e4907d0c2890556
/
.
/
JSTests
/
es6
/
Map_Map.prototype.size.js
blob: 7bdcbfaaef06d0e2f7203bdcf37a56281095f315 [
file
] [
log
] [
blame
]
function
test
()
{
var
key
=
{};
var
map
=
new
Map
();
map
.
set
(
key
,
123
);
return
map
.
size
===
1
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);