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