Sign in
webkit
/
WebKit
/
6ac1ae7345a9a50f3760d4fdf5f8c6512c4a9901
/
.
/
PerformanceTests
/
SixSpeed
/
tests
/
map-set
/
map-set.es6
blob: 583450d1db68e75226d717a2a708ee45f149e5f2 [
file
] [
log
] [
blame
]
function
fn
()
{
var
map
=
new
Map
(),
set
=
new
Set
();
for
(
var
i
=
0
;
i
<
250
;
i
++)
{
map
.
set
(
i
,
i
);
set
.
add
(
i
);
}
map
.
set
(
'foo'
,
'bar'
);
set
.
add
(
'bar'
);
return
map
.
has
(
'foo'
)
&&
set
.
has
(
'bar'
);
}
assertEqual
(
fn
(),
true
);
test
(
fn
);