Sign in
webkit
/
WebKit
/
293423b2e3bc99a3b6b08c9e39c59d8eb89f00e1
/
.
/
PerformanceTests
/
SixSpeed
/
tests
/
map-set-object
/
map-set-object.es6
blob: 8624a0bb27a3df56d9108664a1bbfe4029548175 [
file
] [
log
] [
blame
]
function
fn
()
{
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
);
return
map
.
has
(
key
)
&&
set
.
has
(
key
);
}
assertEqual
(
fn
(),
true
);
test
(
fn
);