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

Method getLengthProp

array_sparse.go:120–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118}
119
120func (a *sparseArrayObject) getLengthProp() *valueProperty {
121 a.lengthProp.value = intToValue(int64(a.length))
122 return &a.lengthProp
123}
124
125func (a *sparseArrayObject) getOwnPropStr(name unistring.String) Value {
126 if idx := strToArrayIdx(name); idx != math.MaxUint32 {

Callers 2

getOwnPropStrMethod · 0.95
defineOwnPropertyStrMethod · 0.95

Calls 1

intToValueFunction · 0.85

Tested by

no test coverage detected