Sign in
webkit
/
WebKit
/
38af2d11a53891d36db2adc946c621e143cf63f2
/
.
/
JSTests
/
microbenchmarks
/
put-by-val-large-index-blank-indexing-type.js
blob: f94bd555ff0417ea6db5509ed116cd5e2573bbc6 [
file
] [
log
] [
blame
]
var
global
=
[];
function
foo
(
o
,
id
)
{
o
[
id
]
=
42
;
}
var
sum
=
0
;
for
(
var
i
=
0
;
i
<
20000
;
i
++)
{
var
o
=
{};
foo
(
o
,
i
);
sum
+=
o
[
i
];
global
.
push
(
o
);
}
if
(
sum
!=
42
*
20000
)
throw
"Error!"