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

Issue 2094253002: Fix behavior of throw on yield*. (Closed)

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

Fix behavior of throw on yield*. When calling the throw method on a generator suspended inside a yield*, yield* in turn tries to call throw on its iterable. If the iterable does not provide a throw method, yield* must try to call the return method instead and then throw a TypeError. Due to a bug in our desugaring, we never threw the TypeError. R=adamk@chromium.org BUG=v8:5132 Committed: https://crrev.com/2f0cb3afa350c5c0a85f6cdb34aad402afb6ff50 Cr-Commit-Position: refs/heads/master@{#37314}

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -33 lines) Patch
M src/parsing/parser.h View 1 chunk +4 lines, -4 lines 0 comments Download
M src/parsing/parser.cc View 1 11 chunks +15 lines, -29 lines 0 comments Download
M test/mjsunit/harmony/generators.js View 1 1 chunk +12 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/generators-turbo.js View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (11 generated)
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/2094253002/20001
4 years, 5 months ago (2016-06-27 10:44:06 UTC) #3
neis
ptal
4 years, 5 months ago (2016-06-27 11:03:34 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-27 11:10:08 UTC) #8
adamk
lgtm
4 years, 5 months ago (2016-06-27 18:21:45 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/2094253002/20001
4 years, 5 months ago (2016-06-28 07:09:48 UTC) #11
commit-bot: I haz the power
Failed to apply patch for test/mjsunit/harmony/generators-turbo.js: While running git apply --index -3 -p1; error: patch ...
4 years, 5 months ago (2016-06-28 07:12:15 UTC) #13
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/2094253002/40001
4 years, 5 months ago (2016-06-28 07:16:18 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 5 months ago (2016-06-28 07:43:46 UTC) #18
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 07:46:21 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2f0cb3afa350c5c0a85f6cdb34aad402afb6ff50
Cr-Commit-Position: refs/heads/master@{#37314}

Powered by Google App Engine
This is Rietveld 408576698