Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
JSTests
/
es6
/
Map_basic_functionality.js
blob: 513e7a178bc1474ee1456b59c815625f4fcb3338 [
file
] [
log
] [
blame
]
function
test
()
{
var
key
=
{};
var
map
=
new
Map
();
map
.
set
(
key
,
123
);
return
map
.
has
(
key
)
&&
map
.
get
(
key
)
===
123
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);