Dean Landolt wrote:
On Tue, Jan 6, 2015 at 3:57 PM, Marius Gundersen <[email protected] <mailto:[email protected]>> wrote:

    I don't see how wellLabeledStatement will protect against object
    literals with shorthand properties, like (x, y, z) => {x, y, z}.


It would "protect" against them by disallowing them without the paren wrapping. A fail-fast SyntaxError beats the hell out of trying to diagnose an almost imperceptible runtime bug.

No, Marius has a point here: there's no LABEL: before anything in {x, y, z}.

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to