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

Issue 2390943002: Don't skip hole checks inside patterns in parameter lists (Closed)

Created:
4 years, 2 months ago by adamk
Modified:
4 years, 2 months ago
Reviewers:
caitp, neis
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Don't skip hole checks inside patterns in parameter lists Previously, b6e9f625c17f3a688139426771e2cb34fbdcb46e fixed self-assignment in parameters to throw. But it failed to deal with the case of destructuring with defaults. This patch extends that previous approach to always treat the end of a parameter as its initializer position, whether it has an initializer or not. This is the minimal change to make it easy to merge; a follow-up will rename the field of Parameter from "initializer_end_position" to "end_position". BUG=v8:5454 Committed: https://crrev.com/3c39bac4403dddc5b8d74aefd1cb06a967a2c4f1 Cr-Commit-Position: refs/heads/master@{#39962}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -5 lines) Patch
M src/parsing/parser.cc View 3 chunks +1 line, -5 lines 0 comments Download
A test/mjsunit/regress/regress-5454.js View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
adamk
4 years, 2 months ago (2016-10-04 01:22:41 UTC) #4
adamk
4 years, 2 months ago (2016-10-04 01:22:54 UTC) #6
neis
lgtm
4 years, 2 months ago (2016-10-04 08:58:07 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/2390943002/1
4 years, 2 months ago (2016-10-04 17:01:55 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-04 17:04:15 UTC) #12
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 17:04:28 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/3c39bac4403dddc5b8d74aefd1cb06a967a2c4f1
Cr-Commit-Position: refs/heads/master@{#39962}

Powered by Google App Engine
This is Rietveld 408576698