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

Method getStr

array_sparse.go:97–99  ·  view source on GitHub ↗
(name unistring.String, receiver Value)

Source from the content-addressed store, hash-verified

95}
96
97func (a *sparseArrayObject) getStr(name unistring.String, receiver Value) Value {
98 return a.getStrWithOwnProp(a.getOwnPropStr(name), name, receiver)
99}
100
101func (a *sparseArrayObject) getIdx(idx valueInt, receiver Value) Value {
102 prop := a.getOwnPropIdx(idx)

Callers

nothing calls this directly

Calls 2

getOwnPropStrMethod · 0.95
getStrWithOwnPropMethod · 0.80

Tested by

no test coverage detected