Sign in
webkit
/
WebKit
/
46b434670d2211eb20be608b69854620e6473b75
/
.
/
PerformanceTests
/
SixSpeed
/
tests
/
map-set-lookup
/
map-set-lookup.es6
blob: 2fc9c503e237c4d77a463b411ffc6ab7f794c0dc [
file
] [
log
] [
blame
]
var
map
=
new
Map
(),
set
=
new
Set
(),
key
=
{};
for
(
var
i
=
0
;
i
<
500
;
i
++)
{
map
.
set
(
i
,
i
);
set
.
add
(
i
);
}
map
.
set
(
key
,
'bar'
);
set
.
add
(
key
);
function
fn
()
{
return
map
.
has
(
key
)
&&
set
.
has
(
key
);
}
assertEqual
(
fn
(),
true
);
test
(
fn
);