Function apply and call (was RE: Bait taken: Arguments about arguments)
david.hopwood at industrial-designers.co.uk
Thu Jan 15 19:35:15 PST 2009
Brendan Eich wrote:
> On Jan 15, 2009, at 5:42 PM, David-Sarah Hopwood wrote:
>> Allen Wirfs-Brock wrote:
>>> I generally agree that it would be a good idea to specify apply (and
>>> pretty much as proposed below by David-Sarah. The major reason that it
>>> makes it explicit what happens for most currently unspecified edge cases
>>> such as a sparse argArray or argArray properties that are accessors.
>> Exactly: even if the second argument to 'apply' were restricted to Array
>> and arguments objects, the properties can (and would in the case of an
>> arguments object specified as in the current draft) have getters.
>> So an implementation *must* read the properties in a way that has the
>> full generality of [[Get]], and might as well be specified using [[Get]].
> This is a fix indeed.
OK, we seem to have a rough concensus. I will open a ticket on this...
> Open a ticket and list your minimum set of allowable limits?
... and this.
More information about the Es-discuss