Sign in
webkit
/
WebKit
/
6ada3cd2e0d9b9e450b5e021e0e5526f55f59df8
/
.
/
JSTests
/
stress
/
for-in-postfix-index.js
blob: 0d59240f532c9b9dcf17ef5f78378ea52c55d5c2 [
file
] [
log
] [
blame
]
//@ runDefault
function
foo
(
o
)
{
var
result
=
0
;
for
(
var
s in o
)
{
var
tmp
=
s
++;
result
+=
o
[
s
];
result
+=
tmp
;
}
return
result
;
}
var
result
=
foo
({
f
:
42
});
if
(
""
+
result
!=
"NaN"
)
throw
"Error: bad result: "
+
result
;