Erik Arvidsson (2014-06-19T14:47:26.000Z)
dignifiedquire at gmail.com (2014-06-23T17:43:04.271Z)
> On Wed, Jun 18, 2014 at 12:07 AM, Brendan Eich <brendan at mozilla.org> wrote: > >> Domenic Denicola wrote: >> >> Another way of guiding the decision: I don't quite recall where the spec >> landed `{ x: 1, ["x"]: 2 }`, but we should probably be consistent with that. >> > > *Mark Miller:* I am ok with removing the constraint that duplicate dynamic > object properties throw (in strict mode) with the caveat that we also > remove the same constraint for duplicate static properties. > > from http://esdiscuss.org/notes/2014-06-06#rest-properties-and-spread-properties-sebastian-markb-ge-. > https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-06/jun-6.md#conclusionresolution-3 - For both strict and sloppy object literals, both computed and static properties no longer have any duplicate name checking. I would like this the above to be clarified. At the f2f we were talking about spread in object literals. ```js var a = {x: 1, y: 2}; var b = {x: 3, ...a}; ``` However, reading the notes the context is lost and it seems like we are suggestion removing the duplicate property check added in ES5 for strict mode.