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

Issue 1632303002: Treat yield expressions as an AssignmentPattern error (Closed)

Created:
4 years, 11 months ago by adamk
Modified:
4 years, 11 months ago
Reviewers:
rossberg
CC:
v8-reviews_googlegroups.com, caitp (gmail)
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Treat yield expressions as an AssignmentPattern error They were already treated as a BindingPattern error; this patch simply replaces that call with one marking them as both a binding and assignment error, and adds parsing tests for both cases. BUG=v8:4707 LOG=n Committed: https://crrev.com/b874e3d521e11baa77c36014a999ed7c33ec9a41 Cr-Commit-Position: refs/heads/master@{#33528}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Added test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -2 lines) Patch
M src/parsing/parser-base.h View 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-parsing.cc View 1 4 chunks +20 lines, -1 line 0 comments Download

Messages

Total messages: 12 (4 generated)
adamk
4 years, 11 months ago (2016-01-26 19:16:56 UTC) #2
rossberg
lgtm https://codereview.chromium.org/1632303002/diff/1/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc (right): https://codereview.chromium.org/1632303002/diff/1/test/cctest/test-parsing.cc#newcode2421 test/cctest/test-parsing.cc:2421: "({a: yield 24} = {a: 42});", Maybe add ...
4 years, 11 months ago (2016-01-26 19:33:10 UTC) #3
adamk
https://codereview.chromium.org/1632303002/diff/1/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc (right): https://codereview.chromium.org/1632303002/diff/1/test/cctest/test-parsing.cc#newcode2421 test/cctest/test-parsing.cc:2421: "({a: yield 24} = {a: 42});", On 2016/01/26 19:33:09, ...
4 years, 11 months ago (2016-01-26 19:39:57 UTC) #4
rossberg
https://codereview.chromium.org/1632303002/diff/1/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc (right): https://codereview.chromium.org/1632303002/diff/1/test/cctest/test-parsing.cc#newcode2421 test/cctest/test-parsing.cc:2421: "({a: yield 24} = {a: 42});", On 2016/01/26 19:39:57, ...
4 years, 11 months ago (2016-01-26 19:56:26 UTC) #5
adamk
On 2016/01/26 19:56:26, rossberg wrote: > https://codereview.chromium.org/1632303002/diff/1/test/cctest/test-parsing.cc > File test/cctest/test-parsing.cc (right): > > https://codereview.chromium.org/1632303002/diff/1/test/cctest/test-parsing.cc#newcode2421 > ...
4 years, 11 months ago (2016-01-26 20:23:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1632303002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1632303002/20001
4 years, 11 months ago (2016-01-26 20:23:57 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-26 21:15:07 UTC) #10
commit-bot: I haz the power
4 years, 11 months ago (2016-01-26 21:16:05 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b874e3d521e11baa77c36014a999ed7c33ec9a41
Cr-Commit-Position: refs/heads/master@{#33528}

Powered by Google App Engine
This is Rietveld 408576698