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

Method createFunction

builtin_function.go:278–280  ·  view source on GitHub ↗
(v *Object)

Source from the content-addressed store, hash-verified

276}
277
278func (r *Runtime) createFunction(v *Object) objectImpl {
279 return r.newNativeFuncConstructObj(v, r.builtin_Function, "Function", r.getFunctionPrototype(), 1)
280}
281
282func (r *Runtime) createAsyncFunctionProto(val *Object) objectImpl {
283 o := &baseObject{

Callers 1

getFunctionMethod · 0.95

Calls 2

getFunctionPrototypeMethod · 0.95

Tested by

no test coverage detected