Michael Winter wrote:
> function testArguments() {
> var arguments = 'string';
>
> alert(arguments + ' ' + testArguments.arguments);
> }
There was no "var arguments" statement in Florian's code, but an
argument identifier "arguments". Look at this example:
function testArguments(arguments, baz) {
alert([
"1: " + arguments,
"2: " + (testArguments.arguments && testArguments.arguments[1]),
"3: " + testArguments[1]
].join("\n"));
}
testArguments("foo", "bar");
> that approach is
> deprecated as of JS1.4 and is not present in the ECMAScript standard.
Referencing the arguments array as a property of the function object
only. MSIE does not care about this. I didn't say I'd like that, I just
wanted to show that the initial arguments object is not deleted in both
major browsers.
> Why should it be? It's not necessary. [...] don't create a local
> variable (of any origin) with the same name
Didn't I say that I wouldn't ever do so?
ciao, dhgm