Using destructuring for function arguments
brendan at mozilla.org
Sun Jun 1 10:09:32 PDT 2014
Dmitry Soshnikov wrote:
> On Sat, May 31, 2014 at 1:41 PM, Brendan Eich <brendan at mozilla.org
> <mailto:brendan at mozilla.org>> wrote:
> Matthew Robb wrote:
> Seems like any identifiers in the arguments should always be
> defined in scope before ever considering what they will be
> Right, and they are in scope no matter what.
> Seems to me that an implementation bug (can't have parameter
> default value for destructuring formal) is the only problem
> brought to light in this thread. Anyone see anything else amiss?
> No, seems it's the only problem. Also, just to add: esprima parser
> also has this bug yet (can't have param default value with patterns).
Nicholas kindly filed
to track the SpiderMonkey bug. If you file an Esprima one, could you
cite it to the list? Thanks,
More information about the es-discuss