(idx valueInt)
| 145 | } |
| 146 | |
| 147 | func (o *objectGoArrayReflect) getOwnPropIdx(idx valueInt) Value { |
| 148 | if idx := toIntStrict(int64(idx)); idx >= 0 && idx < o.fieldsValue.Len() { |
| 149 | return &valueProperty{ |
| 150 | value: o._getIdx(idx), |
| 151 | writable: true, |
| 152 | enumerable: true, |
| 153 | } |
| 154 | } |
| 155 | return nil |
| 156 | } |
| 157 | |
| 158 | func (o *objectGoArrayReflect) _putIdx(idx int, v Value, throw bool) bool { |
| 159 | cached := o.valueCache.get(idx) |
nothing calls this directly
no test coverage detected