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

Method getLengthProp

array.go:201–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199}
200
201func (a *arrayObject) getLengthProp() *valueProperty {
202 a.lengthProp.value = intToValue(int64(a.length))
203 return &a.lengthProp
204}
205
206func (a *arrayObject) setOwnIdx(idx valueInt, val Value, throw bool) bool {
207 if i := toIdx(idx); i != math.MaxUint32 {

Callers 2

getOwnPropStrMethod · 0.95
defineOwnPropertyStrMethod · 0.95

Calls 1

intToValueFunction · 0.85

Tested by

no test coverage detected