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

Method defineOwnPropertyIdx

object_dynamic.go:702–707  ·  view source on GitHub ↗
(name valueInt, desc PropertyDescriptor, throw bool)

Source from the content-addressed store, hash-verified

700}
701
702func (a *dynamicArray) defineOwnPropertyIdx(name valueInt, desc PropertyDescriptor, throw bool) bool {
703 if a.checkDynamicObjectPropertyDescr(name, desc, throw) {
704 return a._setIdx(toIntStrict(int64(name)), desc.Value, throw)
705 }
706 return false
707}
708
709func (a *dynamicArray) _delete(idx int, throw bool) bool {
710 if a._has(idx) {

Callers

nothing calls this directly

Calls 3

_setIdxMethod · 0.95
toIntStrictFunction · 0.85

Tested by

no test coverage detected