1 2 3 4 5 6 7 8 9 10
var g; function foo(b) { if (b) function arguments() {}; return arguments; } var a = foo(true); assertEq(typeof a, "function"); assertEq(a.name, "arguments");