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

Tom Van Cutsem at
Tue Aug 30 01:57:45 PDT 2011

2011/8/29 Allen Wirfs-Brock <allen at>

> I think 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list