Sign in
webkit
/
WebKit
/
8de09782621a8d8b47ef684da5e0e163b556e859
/
.
/
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
);