Re: Mutable `length` for functions?

2013-02-26 Thread Claude Pache
An alternative to a writable 'length' property, is to make it configurable and nonwritable. It would prevent the issue of accidental assignments to the 'length' property that used be ignored in non-strict mode (they'll still be ignored), but it would allow to modify its value using

Re: Mutable `length` for functions?

2013-02-26 Thread Brendan Eich
Claude Pache wrote: An alternative to a writable 'length' property, is to make it configurable and nonwritable. It would prevent the issue of accidental assignments to the 'length' property that used be ignored in non-strict mode (they'll still be ignored), but it would allow to modify its

Re: Mutable `length` for functions?

2013-02-26 Thread Mark S. Miller
[+google-caja-discuss] I don't see any problems for SES. cc'ing google-caja-discuss in case someone there spots something I missed. Anyone? Assuming there are no problems, I like this for all the reasons stated. On Tue, Feb 26, 2013 at 11:22 AM, Brendan Eich bren...@mozilla.com wrote:

Re: Mutable `length` for functions?

2013-02-26 Thread Allen Wirfs-Brock
On Feb 26, 2013, at 11:22 AM, Brendan Eich wrote: Claude Pache wrote: An alternative to a writable 'length' property, is to make it configurable and nonwritable. It would prevent the issue of accidental assignments to the 'length' property that used be ignored in non-strict mode (they'll

Re: Mutable `length` for functions?

2013-02-26 Thread Brendan Eich
Allen Wirfs-Brock wrote: Like I've said before, I play the long game. Eventually you usually come around:-) Except when you're off target :-P. But good long-game on this one -- well played! /be ___ es-discuss mailing list es-discuss@mozilla.org