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

Method createGeneratorFunction

builtin_function.go:371–374  ·  view source on GitHub ↗
(val *Object)

Source from the content-addressed store, hash-verified

369}
370
371func (r *Runtime) createGeneratorFunction(val *Object) objectImpl {
372 o := r.newNativeFuncConstructObj(val, r.builtin_generatorFunction, "GeneratorFunction", r.getGeneratorFunctionPrototype(), 1)
373 return o
374}
375
376func (r *Runtime) getGeneratorFunction() *Object {
377 var o *Object

Callers 1

getGeneratorFunctionMethod · 0.95

Tested by

no test coverage detected