Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Issue 677953004: Allow duplicate property names in classes (Closed)

Created:
6 years, 1 month ago by arv (Not doing code reviews)
Modified:
6 years, 1 month ago
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

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 Committed: https://code.google.com/p/v8/source/detail?r=24933

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove out dated comment and add/fix assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -29 lines) Patch
M src/messages.js View 1 chunk +2 lines, -1 line 0 comments Download
M src/preparser.h View 1 9 chunks +32 lines, -22 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 3 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
arv (Not doing code reviews)
PTAL Another option would be to make the checker handle this but since the checker ...
6 years, 1 month ago (2014-10-27 15:42:07 UTC) #2
marja
lgtm % https://codereview.chromium.org/677953004/diff/1/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/677953004/diff/1/src/preparser.h#newcode1973 src/preparser.h:1973: if (*has_seen_constructor) { It's not trivial to ...
6 years, 1 month ago (2014-10-28 08:30:22 UTC) #3
arv (Not doing code reviews)
Thanks https://codereview.chromium.org/677953004/diff/1/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/677953004/diff/1/src/preparser.h#newcode1973 src/preparser.h:1973: if (*has_seen_constructor) { On 2014/10/28 08:30:22, marja wrote: ...
6 years, 1 month ago (2014-10-28 09:25:55 UTC) #4
arv (Not doing code reviews)
Remove out dated comment and add/fix assert
6 years, 1 month ago (2014-10-28 11:53:38 UTC) #5
arv (Not doing code reviews)
6 years, 1 month ago (2014-10-28 12:23:35 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as 24933 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698