MCPcopy Create free account
hub / github.com/dop251/goja / validate

Method validate

func.go:916–920  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 3

nextMethod · 0.95
throwMethod · 0.95
_returnMethod · 0.95

Calls 1

NewTypeErrorMethod · 0.80

Tested by

no test coverage detected