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

Issue 139653003: Throw a TypeError when calling "next" method of a newly created generator with a value (Closed)

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

Description

Throw a TypeError when calling "next" method of a newly created generator with a value According to the ECMA262 6th rev20 draft 25.3.3.2-7, when calling "next" method of a newly created generator with a value `generator.next(value)` TypeError should be thrown. And when calling "throw" method of newly created generator, generator's status becomes "completed" and throw a provided value. BUG=v8:3099

Patch Set 1 #

Total comments: 2

Patch Set 2 : Revised #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -1 line) Patch
M src/arm/full-codegen-arm.cc View 1 2 chunks +23 lines, -0 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 2 chunks +23 lines, -0 lines 0 comments Download
M src/messages.js View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/mips/full-codegen-mips.cc View 1 2 chunks +23 lines, -0 lines 0 comments Download
M src/runtime.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 2 chunks +23 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/generators-iteration.js View 2 chunks +40 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
yusukesuzuki
PTAL
6 years, 11 months ago (2014-01-15 17:53:37 UTC) #1
yusukesuzuki
Hi Michael and Andy, could you take a look at this patch?
6 years, 11 months ago (2014-01-27 14:47:59 UTC) #2
wingo
On 2014/01/27 14:47:59, yusukesuzuki wrote: > Hi Michael and Andy, could you take a look ...
6 years, 11 months ago (2014-01-27 17:48:49 UTC) #3
wingo
On 2014/01/27 17:48:49, wingo wrote: > On 2014/01/27 14:47:59, yusukesuzuki wrote: > > Hi Michael ...
6 years, 10 months ago (2014-01-28 08:56:37 UTC) #4
yusukesuzuki
On 2014/01/28 08:56:37, wingo wrote: > Probably best to wait until this week's TC39 meeting ...
6 years, 10 months ago (2014-01-28 09:02:29 UTC) #5
wingo
https://codereview.chromium.org/139653003/diff/1/src/ia32/full-codegen-ia32.cc File src/ia32/full-codegen-ia32.cc (right): https://codereview.chromium.org/139653003/diff/1/src/ia32/full-codegen-ia32.cc#newcode1972 src/ia32/full-codegen-ia32.cc:1972: __ bind(&resume); Instead of storing the initial suspend offset ...
6 years, 10 months ago (2014-02-11 08:59:20 UTC) #6
yusukesuzuki
https://codereview.chromium.org/139653003/diff/1/src/ia32/full-codegen-ia32.cc File src/ia32/full-codegen-ia32.cc (right): https://codereview.chromium.org/139653003/diff/1/src/ia32/full-codegen-ia32.cc#newcode1972 src/ia32/full-codegen-ia32.cc:1972: __ bind(&resume); On 2014/02/11 08:59:21, wingo wrote: > Instead ...
6 years, 10 months ago (2014-02-11 11:46:59 UTC) #7
yusukesuzuki
On 2014/02/11 11:46:59, yusukesuzuki wrote: > https://codereview.chromium.org/139653003/diff/1/src/ia32/full-codegen-ia32.cc > File src/ia32/full-codegen-ia32.cc (right): > > https://codereview.chromium.org/139653003/diff/1/src/ia32/full-codegen-ia32.cc#newcode1972 > ...
6 years, 10 months ago (2014-02-12 07:03:49 UTC) #8
yusukesuzuki
ping
6 years, 10 months ago (2014-02-15 04:04:59 UTC) #9
wingo
On 2014/02/15 04:04:59, yusukesuzuki wrote: > ping Thank you very much for bringing up this ...
6 years, 6 months ago (2014-06-10 12:32:18 UTC) #10
yusukesuzuki
6 years, 5 months ago (2014-07-04 02:59:41 UTC) #11
On 2014/06/10 12:32:18, wingo wrote:
> On 2014/02/15 04:04:59, yusukesuzuki wrote:
> > ping
> 
> Thank you very much for bringing up this issue.  In the meantime, and in
> response to your patch, the spec has changed to standardize the current
> behavior:
> http://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
> 
> So thanks again for the patch, although it shouldn't go in now.  Marking not
> LGTM to indicate that it is no longer applicable.

Ah! Thank you for your clarification!
So I'll close this CL.

Powered by Google App Engine
This is Rietveld 408576698