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

Issue 2110193002: Do all parsing for try/catch destructuring inside the appropriate scopes (Closed)

Created:
4 years, 5 months ago by adamk
Modified:
4 years, 5 months ago
Reviewers:
neis
CC:
v8-reviews_googlegroups.com, bakkot
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Do all parsing for try/catch destructuring inside the appropriate scopes Previously, any expressions inside destructuring patterns in a catch would be parsed in the surrounding scope, instead of in the catch's scope. This change fixes that by entering not only the catch scope, but also the block scope inside it. R=neis@chromium.org BUG=v8:5106, v8:5112 Committed: https://crrev.com/7166503f6e90949f4d3ac6902d737966c2c1c08c Cr-Commit-Position: refs/heads/master@{#37415}

Patch Set 1 #

Patch Set 2 : Mark test262 test as passing #

Patch Set 3 : Fix another test262 and remove a TODO #

Patch Set 4 : Rebased #

Patch Set 5 : Fix comments #

Patch Set 6 : One less scope #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -21 lines) Patch
M src/parsing/parser.cc View 1 2 3 4 5 2 chunks +22 lines, -20 lines 2 comments Download
A test/mjsunit/regress/regress-5106.js View 1 chunk +29 lines, -0 lines 0 comments Download
M test/test262/test262.status View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 12 (6 generated)
adamk
4 years, 5 months ago (2016-06-29 19:06:51 UTC) #1
neis
Thanks! lgtm https://codereview.chromium.org/2110193002/diff/100001/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2110193002/diff/100001/src/parsing/parser.cc#newcode3058 src/parsing/parser.cc:3058: // add an additional block scope for ...
4 years, 5 months ago (2016-06-30 06:47:06 UTC) #5
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/2110193002/100001
4 years, 5 months ago (2016-06-30 06:47:23 UTC) #7
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-06-30 06:49:27 UTC) #9
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/7166503f6e90949f4d3ac6902d737966c2c1c08c Cr-Commit-Position: refs/heads/master@{#37415}
4 years, 5 months ago (2016-06-30 06:52:23 UTC) #11
adamk
4 years, 5 months ago (2016-06-30 16:02:11 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/2110193002/diff/100001/src/parsing/parser.cc
File src/parsing/parser.cc (right):

https://codereview.chromium.org/2110193002/diff/100001/src/parsing/parser.cc#...
src/parsing/parser.cc:3058: // add an additional block scope for the catch body.
On 2016/06/30 06:47:05, neis wrote:
> Is this related to the remaining test262 failure?

Yes, Kevin will fix this in his patch which fixes more conformance issues with
declarations in catch blocks.

Powered by Google App Engine
This is Rietveld 408576698