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

Method getArrayPrototype

builtin_array.go:1684–1692  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1682}
1683
1684func (r *Runtime) getArrayPrototype() *Object {
1685 ret := r.global.ArrayPrototype
1686 if ret == nil {
1687 ret = &Object{runtime: r}
1688 r.global.ArrayPrototype = ret
1689 r.newTemplatedArrayObject(getArrayProtoTemplate(), ret)
1690 }
1691 return ret
1692}
1693
1694func (r *Runtime) getArray() *Object {
1695 ret := r.global.Array

Callers 5

newArrayObjectMethod · 0.95
createArrayMethod · 0.95
NewDynamicArrayMethod · 0.95
initMethod · 0.80
_initMethod · 0.80

Calls 2

getArrayProtoTemplateFunction · 0.85

Tested by

no test coverage detected