Allow duplicate property names in classes
authorarv@chromium.org <arv@chromium.org>
Tue, 28 Oct 2014 12:23:26 +0000 (12:23 +0000)
committerarv@chromium.org <arv@chromium.org>
Tue, 28 Oct 2014 12:23:40 +0000 (12:23 +0000)
commita13e2298e20976fc2e2a76eaba97a81f6e88aab7
tree075416fbdc5bd14d3fdbfe448945f0d35e3f929d
parent11a6681bef7ef163eee2ec3d3fe5a84255e7b9d2
Allow duplicate property names in classes

ES6 no longer makes duplicate properties an error. However, we
continue to treat duplicate properties in strict mode object
literals as errors. With this change we allow duplicate properties
in class bodies. We continue to flag duplicate constructors as an
error as required by ES6.

BUG=v8:3570
LOG=Y
R=marja@chromium.org

Review URL: https://codereview.chromium.org/677953004

Cr-Commit-Position: refs/heads/master@{#24933}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24933 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/messages.js
src/preparser.h
test/cctest/test-parsing.cc