Allen Wirfs-Brock (2014-01-15T16:50:38.000Z)
domenic at domenicdenicola.com (2014-01-22T19:21:21.454Z)
On Jan 15, 2014, at 8:32 AM, David Bruant wrote: > From what I understand, the spec says an error should be thrown because the generator is in "suspendedStart" state and value is not undefined (25.3.3.2 GeneratorResume step 7). Yes, that's what the spec, requires. This check was in the the original Generator proposal http://wiki.ecmascript.org/doku.php?id=harmony:generators#internal_methodsend It's an error because there is no mechanism for a generator to receive the argument passed by the first next.