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

Issue 1061983004: Allow eval/arguments in arrow functions (Closed)

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

Description

Allow eval/arguments in arrow functions R=arv@chromium.org, adamk@chromium.org, marja@chromium.org BUG=v8:4020 LOG=N Committed: https://crrev.com/71d3213a3f9da3f2ade37fe22ad02d8a658172c2 Cr-Commit-Position: refs/heads/master@{#27824}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Differentiate between eval/arguments and strict reserved arrow formal parameters; fix nits #

Total comments: 4

Patch Set 3 : Rename "result" parameter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -196 lines) Patch
M src/messages.js View 1 chunk +3 lines, -1 line 0 comments Download
M src/parser.h View 1 2 4 chunks +10 lines, -7 lines 0 comments Download
M src/parser.cc View 1 2 5 chunks +156 lines, -99 lines 0 comments Download
M src/preparser.h View 1 17 chunks +83 lines, -75 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 chunks +77 lines, -14 lines 0 comments Download

Messages

Total messages: 24 (4 generated)
wingo
This is a bit of a WIP. It works but I get errors like: === ...
5 years, 8 months ago (2015-04-13 17:15:52 UTC) #1
arv (Not doing code reviews)
On 2015/04/13 17:15:52, wingo wrote: > This is a bit of a WIP. It works ...
5 years, 8 months ago (2015-04-13 18:26:30 UTC) #2
arv (Not doing code reviews)
https://codereview.chromium.org/1061983004/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1061983004/diff/1/src/parser.cc#newcode1138 src/parser.cc:1138: params = ParseFormalParameterList(&error_locs, &has_rest, &ok); Nice. https://codereview.chromium.org/1061983004/diff/1/src/parser.cc#newcode1143 src/parser.cc:1143: DuplicateFinder ...
5 years, 8 months ago (2015-04-13 18:26:38 UTC) #3
wingo
On 2015/04/13 18:26:30, arv wrote: > On 2015/04/13 17:15:52, wingo wrote: > > This is ...
5 years, 8 months ago (2015-04-14 06:16:03 UTC) #4
rossberg
On 2015/04/14 06:16:03, wingo wrote: > On 2015/04/13 18:26:30, arv wrote: > > On 2015/04/13 ...
5 years, 8 months ago (2015-04-14 07:02:34 UTC) #7
marja
Reparsing on error conditions only is less scary than always reparsing... but the scanner character ...
5 years, 8 months ago (2015-04-14 07:26:38 UTC) #8
wingo
On 2015/04/14 07:26:38, marja wrote: > Reparsing on error conditions only is less scary than ...
5 years, 8 months ago (2015-04-14 07:31:50 UTC) #9
marja
(Not many comments aside what arv@ already said...) https://codereview.chromium.org/1061983004/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1061983004/diff/1/src/parser.cc#newcode1143 src/parser.cc:1143: DuplicateFinder ...
5 years, 8 months ago (2015-04-14 07:38:26 UTC) #10
marja
Yep, def makes sense to do the possible reparsing changes in a separate CL.
5 years, 8 months ago (2015-04-14 07:38:53 UTC) #11
wingo
Thanks for the feedback; updated patch addresses nits, has a couple more minor cleanups, but ...
5 years, 8 months ago (2015-04-14 08:23:29 UTC) #12
marja
conradw, btw, how does this relate to your "is valid strong arrow func param" changes ...
5 years, 8 months ago (2015-04-14 08:24:57 UTC) #13
conradw
On 2015/04/14 08:24:57, marja wrote: > conradw, btw, how does this relate to your "is ...
5 years, 8 months ago (2015-04-14 08:55:31 UTC) #14
marja
lgtm, if arv@ says lgth too https://codereview.chromium.org/1061983004/diff/20001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1061983004/diff/20001/src/parser.cc#newcode3711 src/parser.cc:3711: ZoneList<const AstRawString*>* result, ...
5 years, 8 months ago (2015-04-14 11:59:49 UTC) #15
arv (Not doing code reviews)
LGTM if Marja says so :-) I'm out of office today so I cannot take ...
5 years, 8 months ago (2015-04-14 14:02:46 UTC) #16
marja
I think we'll trust that wingo@ has done arv@'s comments properly. :)
5 years, 8 months ago (2015-04-14 14:05:32 UTC) #17
wingo
On 2015/04/14 14:05:32, marja wrote: > I think we'll trust that wingo@ has done arv@'s ...
5 years, 8 months ago (2015-04-14 14:22:55 UTC) #18
wingo
https://codereview.chromium.org/1061983004/diff/20001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1061983004/diff/20001/src/parser.cc#newcode3711 src/parser.cc:3711: ZoneList<const AstRawString*>* result, VariableProxy* proxy, On 2015/04/14 11:59:48, marja ...
5 years, 8 months ago (2015-04-14 15:05:42 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1061983004/40001
5 years, 8 months ago (2015-04-14 15:05:56 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 8 months ago (2015-04-14 15:37:26 UTC) #23
commit-bot: I haz the power
5 years, 8 months ago (2015-04-14 15:37:37 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/71d3213a3f9da3f2ade37fe22ad02d8a658172c2
Cr-Commit-Position: refs/heads/master@{#27824}

Powered by Google App Engine
This is Rietveld 408576698