Comment #8 on issue 222 by [email protected]: Arguments object is copied on each access using Function.arguments.
http://code.google.com/p/v8/issues/detail?id=222

So did the code below work because it makes a reference to arguments before accessing the arguments property?

function a(){
    console.log(arguments===arguments);
    console.log(a.arguments===a.arguments);
}
a()

Also, if this ticket is dealing with the arguments property of function objects (such as a.arguments) and not the arguments local variable in function bodies, that needs a ticket as well. The following code is broken even though it is using the arguments local variable.

function a(){
    console.log(arguments===arguments);
    console.log(arguments.callee.arguments===arguments);
console.log(arguments.callee.caller.arguments===arguments.callee.caller.arguments);
}
(function(){ a(); })();

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to