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

Issue 1062263002: [parser] report better errors for multiple ForBindings in ForIn/Of loops (Closed)

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

Description

[parser] report better errors for multiple ForBindings in ForIn/Of loops Instead of "unexpected token" errors, report something meatier and more actionable. BUG= R=marja@chromium.org, arv@chromium.org LOG=N Committed: https://crrev.com/ab7d5f9620d85a24e5ef668161d880536bc96fa1 Cr-Commit-Position: refs/heads/master@{#27677}

Patch Set 1 #

Total comments: 9

Patch Set 2 : add tests for num_decls != 1 #

Patch Set 3 : don't specify default parameters #

Patch Set 4 : add tests for zero declarations #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -24 lines) Patch
M src/messages.js View 1 chunk +2 lines, -1 line 0 comments Download
M src/parser.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/parser.cc View 8 chunks +42 lines, -14 lines 1 comment Download
M src/preparser.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/preparser.cc View 5 chunks +22 lines, -8 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 1 chunk +153 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
caitp (gmail)
Followup to crrev.com/1033823002 Unfortunately, it doesn't seem to clean things up as much as I ...
5 years, 8 months ago (2015-04-07 19:39:57 UTC) #1
arv (Not doing code reviews)
https://codereview.chromium.org/1062263002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1062263002/diff/1/src/parser.cc#newcode3394 src/parser.cc:3394: bindings_loc, "for_inof_loop_multi_bindings", loop_type); Another option is to have two ...
5 years, 8 months ago (2015-04-07 21:14:28 UTC) #2
caitp (gmail)
https://codereview.chromium.org/1062263002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1062263002/diff/1/src/parser.cc#newcode3394 src/parser.cc:3394: bindings_loc, "for_inof_loop_multi_bindings", loop_type); On 2015/04/07 21:14:28, arv wrote: > ...
5 years, 8 months ago (2015-04-07 21:22:46 UTC) #3
marja
Cool that you're unifying variable declaration parsing in Parser & PreParser, it's one of my ...
5 years, 8 months ago (2015-04-08 10:05:47 UTC) #4
caitp (gmail)
https://codereview.chromium.org/1062263002/diff/1/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc (right): https://codereview.chromium.org/1062263002/diff/1/test/cctest/test-parsing.cc#newcode4691 test/cctest/test-parsing.cc:4691: On 2015/04/08 10:05:47, marja wrote: > Hmm, none of ...
5 years, 8 months ago (2015-04-08 12:44:36 UTC) #6
marja
lgtm whenever arv is happy https://codereview.chromium.org/1062263002/diff/80001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1062263002/diff/80001/src/parser.cc#newcode3382 src/parser.cc:3382: bool accept_IN = num_decl ...
5 years, 8 months ago (2015-04-08 15:11:05 UTC) #7
arv (Not doing code reviews)
I'm happy! LGTM
5 years, 8 months ago (2015-04-08 15:23:00 UTC) #8
caitp (gmail)
On 2015/04/08 15:23:00, arv wrote: > I'm happy! > > LGTM Cool. I think the ...
5 years, 8 months ago (2015-04-08 15:41:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062263002/80001
5 years, 8 months ago (2015-04-08 18:23:47 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 8 months ago (2015-04-08 18:47:42 UTC) #12
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 18:48:08 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ab7d5f9620d85a24e5ef668161d880536bc96fa1
Cr-Commit-Position: refs/heads/master@{#27677}

Powered by Google App Engine
This is Rietveld 408576698