Sign in
webkit
/
WebKit
/
77b63b8e6a326c64f4e14dec31520d24b21e7c7f
/
.
/
JSTests
/
microbenchmarks
/
let-for-in.js
blob: f5733d0981dac78b270dbec5a38d2ba0fa61e99a [
file
] [
log
] [
blame
]
function
foo
(
o
)
{
var
count
=
0
;
for
(
let p in o
)
{
if
(
o
[
p
])
count
++;
}
return
count
;
}
noInline
(
foo
);
var
total
=
0
;
for
(
let j
=
0
;
j
<
100000
;
++
j
)
total
+=
foo
(
new
Error
);
if
(
total
!=
300000
)
throw
new
Error
(
"Bad result: "
+
total
);