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