Status: New
Owner: ----

New issue 3430 by [email protected]: Incorrect error message when trying to call generator in closed state
http://code.google.com/p/v8/issues/detail?id=3430

Steps to reproduce:
1. Throw an exception from generator function, catch it from caller
2. Resume generator

Expected message: Error: Generator is already finished
What I see: Error: Generator is already running

latest d8 from svn, V8 version 3.27.9999 or node.js 0.11.13

Code to reproduce ( ./out/x64.release/d8 --harmony gen.js ) :

function* genf() {
  throw new Error('test');
  yield 1;
};

var g = genf();
try {
  print(JSON.stringify(g.next()));
} catch(e) {
  print('Got error');
}
print(JSON.stringify(g.next()));


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
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/d/optout.

Reply via email to