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

Method getAsyncFunctionPrototype

builtin_function.go:298–306  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

296}
297
298func (r *Runtime) getAsyncFunctionPrototype() *Object {
299 var o *Object
300 if o = r.global.AsyncFunctionPrototype; o == nil {
301 o = &Object{runtime: r}
302 r.global.AsyncFunctionPrototype = o
303 o.self = r.createAsyncFunctionProto(o)
304 }
305 return o
306}
307
308func (r *Runtime) createAsyncFunction(val *Object) objectImpl {
309 o := r.newNativeFuncConstructObj(val, r.builtin_asyncFunction, "AsyncFunction", r.getAsyncFunctionPrototype(), 1)

Callers 3

createAsyncFunctionMethod · 0.95
newAsyncFuncMethod · 0.95
newAsyncArrowFuncMethod · 0.95

Calls 1

Tested by

no test coverage detected