Sign in
webkit
/
WebKit
/
b0d7f9b249dd6483d6c7bc4f13c440c0842b7127
/
.
/
JSTests
/
es6
/
Map_constructor_arguments.js
blob: 164ccfeca332cfdfd1c4390d1c334e89f7a57a86 [
file
] [
log
] [
blame
]
function
test
()
{
var
key1
=
{};
var
key2
=
{};
var
map
=
new
Map
([[
key1
,
123
],
[
key2
,
456
]]);
return
map
.
has
(
key1
)
&&
map
.
get
(
key1
)
===
123
&&
map
.
has
(
key2
)
&&
map
.
get
(
key2
)
===
456
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);