simpleGenerators

This example is from Generators: a better way to build Iterators
  1. Set a breakpoint on line 12 var g = simpleGenerator()
  2. Reload the page, you stop on line 12
  3. Step into, you stop on line 4 function simpleGenerator(){
  4. BUG: the developer needs to know that this is a generator
  5. Step into, you stop on line 12. BUG: should be 13, is this Firebug bug?
  6. Step into, you stop on line 13.
  7. Step into, you continue to end of the program
  8. BUG: we should have gone to line 5