Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testUndefinedIncrement.js
blob: a42557b3b73a311ade6a8895dfd23293b1fbe58e [
file
] [
log
] [
blame
]
function
f
()
{
var
n
;
var
k
;
for
(
var
i
=
0
;
i
<
18
;
++
i
)
{
n
=
undefined
;
k
=
n
++;
if
(
k
)
{
}
}
return
[
k
,
n
];
}
var
[
a
,
b
]
=
f
();
assertEq
(
isNaN
(
a
),
true
);
assertEq
(
isNaN
(
b
),
true
);