(idx int)
| 88 | } |
| 89 | |
| 90 | func (o *objectGoArrayReflect) _getIdx(idx int) Value { |
| 91 | if v := o.valueCache.get(idx); v != nil { |
| 92 | return v.esValue() |
| 93 | } |
| 94 | |
| 95 | v := o.fieldsValue.Index(idx) |
| 96 | |
| 97 | res, w := o.elemToValue(v) |
| 98 | if w != nil { |
| 99 | o.valueCache.put(idx, w) |
| 100 | } |
| 101 | |
| 102 | return res |
| 103 | } |
| 104 | |
| 105 | func (o *objectGoArrayReflect) getIdx(idx valueInt, receiver Value) Value { |
| 106 | if idx := toIntStrict(int64(idx)); idx >= 0 && idx < o.fieldsValue.Len() { |
no test coverage detected