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

Issue 1532873004: [es6] enable destructuring rest parameters (Closed)

Created:
5 years ago by caitp (gmail)
Modified:
4 years, 11 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[es6] enable destructuring rest parameters Originally, only BindingIdentifiers were a legal operand for the `...` ellipsis in a function rest parameter. This has since changed, allowing the rest array to be destructured. The grammar is now the following: ``` FunctionRestParameter[Yield]: BindingRestElement[?Yield] BindingRestElement[Yield]: ... BindingIdentifier[?Yield] ... BindingPattern[?Yield] ``` *Spec change: https://github.com/tc39/ecma262/commit/d322357e6be95bc4bd3e03f5944a736aac55fa50 *TC39 Discussion: https://github.com/tc39/tc39-notes/blob/master/es7/2015-07/july-28.md#66-bindingrestelement-should-allow-a-bindingpattern-ala-assignmentrestelement BUG=v8:4627, v8:2159 LOG=N R=littledan@chromium.org, adamk@chromium.org, wingo@igalia.com, rossberg@chromium.org Committed: https://crrev.com/dfce900d64f2579607705fd2d94c13f28c2e996f Cr-Commit-Position: refs/heads/master@{#33192}

Patch Set 1 : #

Patch Set 2 : Rebase ontop of recent changes to Rest Params #

Patch Set 3 : Update test262 expectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -55 lines) Patch
M src/parsing/parser.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/parsing/parser-base.h View 1 2 chunks +1 line, -11 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 chunks +21 lines, -39 lines 0 comments Download
M test/mjsunit/es6/rest-params.js View 1 chunk +23 lines, -0 lines 0 comments Download
M test/test262/test262.status View 1 2 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
caitp (gmail)
Take a quick look when you've got a moment, it's a small change, all deletions ...
5 years ago (2015-12-17 23:40:52 UTC) #1
caitp (gmail)
On 2015/12/17 23:40:52, caitp wrote: > Take a quick look when you've got a moment, ...
5 years ago (2015-12-18 00:06:00 UTC) #3
adamk
The spec change affects not only parameters but binding patterns in general. Is there a ...
5 years ago (2015-12-18 13:01:05 UTC) #5
caitp (gmail)
On 2015/12/18 13:01:05, adamk (ooo until 2016) wrote: > The spec change affects not only ...
5 years ago (2015-12-18 13:02:01 UTC) #6
adamk
On 2015/12/18 00:06:00, caitp wrote: > On 2015/12/17 23:40:52, caitp wrote: > > Take a ...
5 years ago (2015-12-18 13:11:05 UTC) #7
caitp (gmail)
On 2015/12/18 13:11:05, adamk (ooo until 2016) wrote: > On 2015/12/18 00:06:00, caitp wrote: > ...
5 years ago (2015-12-18 13:15:54 UTC) #8
adamk
On 2015/12/18 13:15:54, caitp wrote: > On 2015/12/18 13:11:05, adamk (ooo until 2016) wrote: > ...
5 years ago (2015-12-18 13:25:46 UTC) #9
caitp (gmail)
On 2015/12/18 13:25:46, adamk (ooo until 2016) wrote: > On 2015/12/18 13:15:54, caitp wrote: > ...
5 years ago (2015-12-18 13:30:24 UTC) #10
caitp (gmail)
PTAL --- I've updated this for the recent changes to rest parameters. There's probably a ...
4 years, 11 months ago (2016-01-08 19:09:25 UTC) #11
caitp (gmail)
On 2016/01/08 19:09:25, caitp wrote: > PTAL --- I've updated this for the recent changes ...
4 years, 11 months ago (2016-01-08 19:14:02 UTC) #12
adamk
lgtm I like that this is mostly a deletion :)
4 years, 11 months ago (2016-01-08 19:16:34 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1532873004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1532873004/80001
4 years, 11 months ago (2016-01-08 19:49:27 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 11 months ago (2016-01-08 20:22:22 UTC) #17
commit-bot: I haz the power
4 years, 11 months ago (2016-01-08 20:22:59 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/dfce900d64f2579607705fd2d94c13f28c2e996f
Cr-Commit-Position: refs/heads/master@{#33192}

Powered by Google App Engine
This is Rietveld 408576698