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