()
| 359 | } |
| 360 | |
| 361 | func (r *Runtime) getGeneratorFunctionPrototype() *Object { |
| 362 | var o *Object |
| 363 | if o = r.global.GeneratorFunctionPrototype; o == nil { |
| 364 | o = &Object{runtime: r} |
| 365 | r.global.GeneratorFunctionPrototype = o |
| 366 | o.self = r.createGeneratorFunctionProto(o) |
| 367 | } |
| 368 | return o |
| 369 | } |
| 370 | |
| 371 | func (r *Runtime) createGeneratorFunction(val *Object) objectImpl { |
| 372 | o := r.newNativeFuncConstructObj(val, r.builtin_generatorFunction, "GeneratorFunction", r.getGeneratorFunctionPrototype(), 1) |
no test coverage detected