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

Method getStr

array.go:197–199  ·  view source on GitHub ↗
(name unistring.String, receiver Value)

Source from the content-addressed store, hash-verified

195}
196
197func (a *arrayObject) getStr(name unistring.String, receiver Value) Value {
198 return a.getStrWithOwnProp(a.getOwnPropStr(name), name, receiver)
199}
200
201func (a *arrayObject) getLengthProp() *valueProperty {
202 a.lengthProp.value = intToValue(int64(a.length))

Callers 1

BenchmarkArrayGetStrFunction · 0.95

Calls 2

getOwnPropStrMethod · 0.95
getStrWithOwnPropMethod · 0.80

Tested by 1

BenchmarkArrayGetStrFunction · 0.76