Reviewers: Michael Starzinger, wingo,

Message:
PTAL

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

Please review this at https://codereview.chromium.org/139653003/

SVN Base: git://github.com/v8/v8.git@master

Affected files (+199, -26 lines):
  M src/arm/full-codegen-arm.cc
  M src/ia32/full-codegen-ia32.cc
  M src/messages.js
  M src/mips/full-codegen-mips.cc
  M src/objects.h
  M src/runtime.h
  M src/runtime.cc
  M src/x64/full-codegen-x64.cc
  M test/mjsunit/harmony/generators-iteration.js


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to