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

Method getLenProp

object_template.go:380–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

378}
379
380func (a *templatedArrayObject) getLenProp() *valueProperty {
381 lenProp, _ := a.getOwnPropStr("length").(*valueProperty)
382 if lenProp == nil {
383 panic(a.val.runtime.NewTypeError("missing length property"))
384 }
385 return lenProp
386}
387
388func (a *templatedArrayObject) _setOwnIdx(idx uint32) {
389 lenProp := a.getLenProp()

Callers 3

_setOwnIdxMethod · 0.95
setLengthMethod · 0.95
defineOwnPropertyStrMethod · 0.95

Calls 2

NewTypeErrorMethod · 0.80
getOwnPropStrMethod · 0.65

Tested by

no test coverage detected