Destructuring, Defaults, Covering

Kevin Smith khs4473 at
Mon Sep 24 19:52:07 PDT 2012

There's an open draft issue here:

which points out a problem with allowing destructuring assignment forms

    ({ x = "initializer" } = { }); // Identifier followed by an
initializer, not covered by object literal

but is there not also an issue for the same syntax in destructuring binding
patterns with respect to arrow function parameter lists?

    ({ x = "initializer" }) => {}; // Again, not covered by object literal


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

More information about the es-discuss mailing list