Sign in
webkit
/
WebKit
/
836e821ba12ece51c9e96da322c23ddcb72e66b7
/
.
/
JSTests
/
microbenchmarks
/
sparse-conditional.js
blob: 4d3e47f5d087dad3a5ed1e6f9cd1dbe65de3174d [
file
] [
log
] [
blame
]
function
foo
()
{
var
result
=
0
;
for
(
var
i
=
0
;
i
<
1
;
++
i
)
result
++;
return
result
;
}
var
result
=
0
;
for
(
var
i
=
0
;
i
<
200000
;
++
i
)
result
+=
foo
();
if
(
result
!=
200000
)
throw
"Bad result: "
+
result
;