Issue 89: Modifying arguments array doesn't modify function arguments.
http://code.google.com/p/v8/issues/detail?id=89

Comment #1 by christian.plesner.hansen:
We do support writing to the arguments array but only directly, within the  
function itself.  So this,

   function f(a) {
     print(a);
     arguments[0] = 2;
     print(a);
   }
   f(1);

prints

   1
   2

Writing to the arguments array indirectly is supported by other  
implementations but we haven't so far
encountered sites that actually use it.  Also, JavaScript 1.5 deprecates  
indirect access to the arguments array
altogether  
(http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference:Objects:Function:arguments).
Because of the way we optimize named arguments and direct access to the  
arguments array it will be
nontrivial tim implement this so our decision has been not to do it until  
we see more evidence that there is a
need for it.



Issue attribute updates:
        Status: WorkingAsIntended

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

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

Reply via email to