1 2 3 4 5 6 7 8 9 10
function g(x,y) { return x + y; } function f(x) { return g.apply(null, arguments); } for (var i = 0; i < 100; ++i) assertEq(f(i, 1), i+1);