Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
michael@0 | 1 | var count = 0; |
michael@0 | 2 | |
michael@0 | 3 | function f() { |
michael@0 | 4 | arguments.length--; |
michael@0 | 5 | for (var i = 0; i < arguments.length; ++i) { |
michael@0 | 6 | ++count; |
michael@0 | 7 | } |
michael@0 | 8 | } |
michael@0 | 9 | |
michael@0 | 10 | f(1, 2); |
michael@0 | 11 | f(1, 2); |
michael@0 | 12 | f(2, 2); |
michael@0 | 13 | |
michael@0 | 14 | assertEq(count, 3); |