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