Sign in
webkit
/
WebKit
/
6372d18ed2fb0e5306b33bd85febb537c2fcf56a
/
.
/
JSTests
/
microbenchmarks
/
for-of-iterate-array-values.js
blob: 67e5b47cc19fa79de2885c0242a87255aa49f021 [
file
] [
log
] [
blame
]
function
foo
()
{
var
array
=
[];
for
(
var
i
=
0
;
i
<
25000
;
i
++)
array
.
push
(
i
);
var
result
=
0
;
for
(
var
i of array
)
result
+=
i
;
return
result
;
}
var
result
=
foo
()
+
foo
();
if
(
result
!=
624975000
)
throw
"Bad result: "
+
result
;