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

Issue 1328083002: [es6] support `get` and `set` in shorthand properties (Closed)

Created:
5 years, 3 months ago by caitp (gmail)
Modified:
5 years, 3 months ago
Reviewers:
aperez, wingo, adamk, rossberg
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[es6] support `get` and `set` in shorthand properties Add support for `get` and `set` as shorthand properties. Also supports them for CoverInitializedName in BindingPatterns and (once implemented) AssignmentPatterns. BUG=v8:4412, v8:3584 LOG=N R=adamk, aperez, wingo, rossberg Committed: https://crrev.com/b444da41ad9ef32cea08fd24fd89eab258cd1360 Cr-Commit-Position: refs/heads/master@{#30769}

Patch Set 1 #

Patch Set 2 : Add binding pattern tests too #

Patch Set 3 : Alternate version using GOTO, take your pick? #

Total comments: 2

Patch Set 4 : A more fundamental refactoring to make things clearer #

Total comments: 3

Patch Set 5 : Make the comments a bit better #

Patch Set 6 : Return to initial hack implementation (for interdiff) #

Patch Set 7 : Use a better version of the hack #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
M src/preparser.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M test/mjsunit/es6/object-literals-property-shorthand.js View 1 chunk +8 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/destructuring.js View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 14 (4 generated)
caitp (gmail)
PTAL, quick bugfix for reported issue with shorthand properties. Super simple stuff.
5 years, 3 months ago (2015-09-07 01:45:25 UTC) #2
caitp (gmail)
https://codereview.chromium.org/1328083002/diff/80001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/1328083002/diff/80001/src/preparser.h#newcode2614 src/preparser.h:2614: if (!in_class && !is_generator) { I reorganized ParsePropertyDefinition because ...
5 years, 3 months ago (2015-09-07 03:16:17 UTC) #4
adamk
I agree that some refactoring here would be helpful for readability, but I'm not sure ...
5 years, 3 months ago (2015-09-08 23:17:17 UTC) #5
caitp (gmail)
Sounds good to me. I'll have a patchset later tonight https://codereview.chromium.org/1328083002/diff/40001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/1328083002/diff/40001/src/preparser.h#newcode2663 ...
5 years, 3 months ago (2015-09-08 23:35:13 UTC) #6
caitp (gmail)
On 2015/09/08 23:35:13, caitp wrote: > Sounds good to me. I'll have a patchset later ...
5 years, 3 months ago (2015-09-16 15:21:49 UTC) #7
adamk
lgtm Sorry for the delay, I was expecting a ping from your end when you ...
5 years, 3 months ago (2015-09-16 15:25:35 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1328083002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1328083002/160001
5 years, 3 months ago (2015-09-16 15:35:28 UTC) #11
caitp (gmail)
On 2015/09/16 15:25:35, adamk wrote: > lgtm > > Sorry for the delay, I was ...
5 years, 3 months ago (2015-09-16 15:43:20 UTC) #12
commit-bot: I haz the power
Committed patchset #8 (id:160001)
5 years, 3 months ago (2015-09-16 16:01:55 UTC) #13
commit-bot: I haz the power
5 years, 3 months ago (2015-09-16 16:02:15 UTC) #14
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b444da41ad9ef32cea08fd24fd89eab258cd1360
Cr-Commit-Position: refs/heads/master@{#30769}

Powered by Google App Engine
This is Rietveld 408576698