esvalid icon indicating copy to clipboard operation
esvalid copied to clipboard

allow duplicate property names in object literals

Open michaelficarra opened this issue 11 years ago • 1 comments

In ES5, they were restricted in strict mode, but ES6 allows them again. Rationale had to do with dynamic property names.

michaelficarra avatar Nov 22 '14 17:11 michaelficarra

Except for __proto__, apparently: https://esdiscuss.org/topic/question-regarding-duplicate-proto-properties

michaelficarra avatar Dec 09 '14 16:12 michaelficarra