1 2 3 4 5 6 7 8 9 10 11 12 13 14
function f() { var n; var k; for (var i = 0; i < 18; ++i) { n = null; k = n++; if (k) { } } return [k, n]; } var [a, b] = f(); assertEq(a, 0); assertEq(b, 1);