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