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

Method getFunction

builtin_function.go:409–418  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

407}
408
409func (r *Runtime) getFunction() *Object {
410 ret := r.global.Function
411 if ret == nil {
412 ret = &Object{runtime: r}
413 r.global.Function = ret
414 ret.self = r.createFunction(ret)
415 }
416
417 return ret
418}

Callers 2

Calls 1

createFunctionMethod · 0.95

Tested by

no test coverage detected