()
| 914 | } |
| 915 | |
| 916 | func (g *generatorObject) validate() { |
| 917 | if g.state == genStateExecuting { |
| 918 | panic(g.val.runtime.NewTypeError("Illegal generator state")) |
| 919 | } |
| 920 | } |
| 921 | |
| 922 | func (g *generatorObject) step(res Value, resType resultType, ex *Exception) Value { |
| 923 | if ex != nil { |
no test coverage detected