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