1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
actual = ''; expected = '[object Arguments] undefined undefined,[object Arguments] undefined undefined,'; function f() { g(arguments); } function g(a, b, c) { h(arguments); a = 1; b = 2; c = 3; h(arguments); } function h(a, b, c) { appendToActual(a + ' ' + b + ' ' + c); } f(4, 5, 6); assertEq(actual, expected)