Function proxy length (Was: length property value for functions with parameter enhancements)

Tom Van Cutsem tomvc.be at gmail.com
Tue Aug 30 01:57:45 PDT 2011


2011/8/29 Allen Wirfs-Brock <allen at wirfs-brock.com>

> I think 15.3.4.5 should be generalize so that the computation of the length
> property isn't predicted by [[Class]]=='Function' but instead should just
> use the the numeric value of the target's length property, if it exists.  If
> the target does not have a length property or if its value is not a number
> then the bound function would get a length value of 0.
>

That seems reasonable. I guess it implies that callable host objects that
hitherto had a length of 0 might now have a different length, but for
function proxies it seems like the right thing to do.

Cheers,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110830/c92f594f/attachment.html>


More information about the es-discuss mailing list