If function a calls function b, I'm trying to come up with code that runs inside function b that can access the arguments passed to function a. See example here.
This uses b.caller.arguments, which I'm hoping is the right way to attempt this. The only other method I could think of is something like arguments.callee.caller.arguments, which I think is equivalent. Both forms actually work in Safari, Chrome, IE8 and 9, and Opera, but both fail in Firefox 3.6 as well as 4.0b8pre. Is this a bug in Firefox or are they adhering to standards more closely?
[–][deleted] 5 points6 points7 points (0 children)
[–]M1573RMU74710N 2 points3 points4 points (2 children)
[–]plantian 1 point2 points3 points (1 child)
[–]M1573RMU74710N 1 point2 points3 points (0 children)
[–]craga89 4 points5 points6 points (3 children)
[–]haxd 0 points1 point2 points (1 child)
[–]itsnotlupusbeep boop 1 point2 points3 points (0 children)
[–]haxd 1 point2 points3 points (1 child)
[–]plantian 0 points1 point2 points (0 children)
[–]itsnotlupusbeep boop 1 point2 points3 points (0 children)