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

Issue 2119933002: Reland of Add errors for declarations which conflict with catch parameters. (Closed)

Created:
4 years, 5 months ago by bakkot
Modified:
4 years, 5 months ago
Reviewers:
Dan Ehrenberg, adamk
CC:
adamk, 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

Reland of Add errors for declarations which conflict with catch parameters. (patchset #1 id:1 of https://codereview.chromium.org/2112223002/ ) Reason for revert: Correcting issue. Original issue's description: > Revert of Add errors for declarations which conflict with catch parameters. (patchset #6 id:100001 of https://codereview.chromium.org/2109733003/ ) > > Reason for revert: > Fuzzer claims `try { \"\" ; } catch(x) { let x1 = [1,,], x = x; }` causes a crash. > > Original issue's description: > > Add errors for declarations which conflict with catch parameters. > > > > Catch parameters are largely treated as lexical declarations in the > > block which contains their body for the purposes of early syntax errors, > > with some exceptions outlined in B.3.5. This patch introduces most of > > those errors, except those from `eval('for (var e of ...);')` inside of > > a catch with a simple parameter named 'e'. > > > > Note that annex B.3.5 allows var declarations to conflict with simple > > catch parameters, except when the variable declaration is the init of a > > for-of statement. > > > > BUG=v8:5112, v8:4231 > > > > Committed: https://crrev.com/2907c726b2bb5cf20b2bec639ca9e6a521585406 > > Cr-Commit-Position: refs/heads/master@{#37462} > > TBR=littledan@chromium.org > # Skipping CQ checks because original CL landed less than 1 days ago. > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=v8:5112, v8:4231 > > Committed: https://crrev.com/8834d5ecb559001c87c42322969471da60574a8c > Cr-Commit-Position: refs/heads/master@{#37464} R=littledan@chromium.org BUG=v8:5112, v8:4231 Committed: https://crrev.com/819fe046457778a1d99bd7e1e15f9ac2fb64fc40 Cr-Commit-Position: refs/heads/master@{#37728}

Patch Set 1 #

Patch Set 2 : correct loop index #

Patch Set 3 : fixes per Adam #

Unified diffs Side-by-side diffs Delta from patch set Stats (+469 lines, -54 lines) Patch
M src/ast/scopes.h View 1 2 4 chunks +17 lines, -3 lines 0 comments Download
M src/ast/scopes.cc View 1 2 5 chunks +23 lines, -5 lines 0 comments Download
M src/parsing/parser.cc View 1 2 11 chunks +83 lines, -34 lines 0 comments Download
M src/parsing/pattern-rewriter.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/es6/block-conflicts.js View 1 1 chunk +0 lines, -3 lines 0 comments Download
M test/mjsunit/es6/block-conflicts-sloppy.js View 1 1 chunk +0 lines, -3 lines 0 comments Download
M test/mjsunit/es6/block-sloppy-function.js View 1 1 chunk +39 lines, -0 lines 0 comments Download
A test/mjsunit/es6/catch-parameter-redeclaration.js View 1 1 chunk +112 lines, -0 lines 0 comments Download
A test/mjsunit/es6/for-each-in-catch.js View 1 1 chunk +194 lines, -0 lines 0 comments Download
M test/test262/test262.status View 1 2 chunks +0 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
bakkot
Created Reland of Add errors for declarations which conflict with catch parameters.
4 years, 5 months ago (2016-07-01 19:04:39 UTC) #1
bakkot
Addressed Adam's comments on https://codereview.chromium.org/2109733003, other than the kNoSourcePosition one.
4 years, 5 months ago (2016-07-01 19:39:16 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2119933002/230001
4 years, 5 months ago (2016-07-01 19:39:39 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-01 19:39:42 UTC) #6
adamk
lgtm
4 years, 5 months ago (2016-07-01 20:33:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2119933002/230001
4 years, 5 months ago (2016-07-13 19:26:41 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:230001)
4 years, 5 months ago (2016-07-13 19:29:04 UTC) #17
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 19:29:19 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/819fe046457778a1d99bd7e1e15f9ac2fb64fc40
Cr-Commit-Position: refs/heads/master@{#37728}

Powered by Google App Engine
This is Rietveld 408576698