Method
getIdx
(idx valueInt, receiver Value)
Source from the content-addressed store, hash-verified
| 103 | } |
| 104 | |
| 105 | func (o *objectGoArrayReflect) getIdx(idx valueInt, receiver Value) Value { |
| 106 | if idx := toIntStrict(int64(idx)); idx >= 0 && idx < o.fieldsValue.Len() { |
| 107 | return o._getIdx(idx) |
| 108 | } |
| 109 | return o.objectGoReflect.getStr(idx.string(), receiver) |
| 110 | } |
| 111 | |
| 112 | func (o *objectGoArrayReflect) getStr(name unistring.String, receiver Value) Value { |
| 113 | var ownProp Value |
Tested by
no test coverage detected