Destructuring, Defaults, Covering

# Kevin Smith (13 years ago)

There's an open draft issue here:

ecmascript#653

which points out a problem with allowing destructuring assignment forms like:

({ 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
# Erik Arvidsson (13 years ago)

Yes, this looks like the same issue.