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

Issue 136003003: Closed generator returns a completed object instead of throwing a error (Closed)

Created:
6 years, 11 months ago by yusukesuzuki
Modified:
6 years, 11 months ago
CC:
v8-dev
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

Closed generator returns a completed object instead of throwing a error From ES6 rev20 draft, closed generator returns completed object (the value is `undefined` and done is `true`). Since a error thrown in generator is propagated to the caller without setting status of a thrown generator to "completed", once a generator is suspended by a error, status becomes "executing" forever. This is filed as v8:3096 LOG=N BUG=v8:3097 R=mstarzinger@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=18591

Patch Set 1 : Fix upload error #

Total comments: 6

Patch Set 2 : Rev 2 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -63 lines) Patch
M src/arm/full-codegen-arm.cc View 1 2 chunks +23 lines, -6 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 2 chunks +22 lines, -6 lines 1 comment Download
M src/mips/full-codegen-mips.cc View 1 2 chunks +23 lines, -6 lines 0 comments Download
M src/runtime.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 2 chunks +22 lines, -6 lines 0 comments Download
M test/mjsunit/harmony/generators-iteration.js View 1 21 chunks +37 lines, -37 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
yusukesuzuki
PTAL
6 years, 11 months ago (2014-01-12 21:09:44 UTC) #1
yusukesuzuki
Added wingo@ to the reviewers
6 years, 11 months ago (2014-01-13 13:08:13 UTC) #2
wingo
Looks fine to me, just a few nits. Leaving final review to Michael. https://codereview.chromium.org/136003003/diff/8/src/ia32/full-codegen-ia32.cc File ...
6 years, 11 months ago (2014-01-13 13:44:48 UTC) #3
yusukesuzuki
Thank you for your review, wingo@, I've uploaded the revised patch. https://codereview.chromium.org/136003003/diff/8/src/ia32/full-codegen-ia32.cc File src/ia32/full-codegen-ia32.cc (right): ...
6 years, 11 months ago (2014-01-13 14:27:51 UTC) #4
Michael Starzinger
Looking good. I have one comment. https://codereview.chromium.org/136003003/diff/160002/src/ia32/full-codegen-ia32.cc File src/ia32/full-codegen-ia32.cc (right): https://codereview.chromium.org/136003003/diff/160002/src/ia32/full-codegen-ia32.cc#newcode2171 src/ia32/full-codegen-ia32.cc:2171: __ CallRuntime(Runtime::kThrow, 1); ...
6 years, 11 months ago (2014-01-14 13:17:44 UTC) #5
Michael Starzinger
Hmm, of course my idea doesn't work because we haven't built a frame for the ...
6 years, 11 months ago (2014-01-14 13:28:33 UTC) #6
Michael Starzinger
Oh, the spec actually wants the exception to be thrown from within the context of ...
6 years, 11 months ago (2014-01-14 13:47:47 UTC) #7
Michael Starzinger
Committed patchset #2 manually as r18591 (presubmit successful).
6 years, 11 months ago (2014-01-14 15:19:43 UTC) #8
yusukesuzuki
6 years, 11 months ago (2014-01-15 01:32:54 UTC) #9
Message was sent while issue was closed.
Thank you!

Powered by Google App Engine
This is Rietveld 408576698