(idx valueInt)
| 133 | } |
| 134 | |
| 135 | func (a *sparseArrayObject) getOwnPropIdx(idx valueInt) Value { |
| 136 | if idx := toIdx(idx); idx != math.MaxUint32 { |
| 137 | return a._getIdx(idx) |
| 138 | } |
| 139 | return a.baseObject.getOwnPropStr(idx.string()) |
| 140 | } |
| 141 | |
| 142 | func (a *sparseArrayObject) add(idx uint32, val Value) { |
| 143 | i := a.findIdx(idx) |
no test coverage detected