(idx valueInt)
| 168 | } |
| 169 | |
| 170 | func (a *arrayObject) getOwnPropIdx(idx valueInt) Value { |
| 171 | if i := toIdx(idx); i != math.MaxUint32 { |
| 172 | if i < uint32(len(a.values)) { |
| 173 | return a.values[i] |
| 174 | } |
| 175 | return nil |
| 176 | } |
| 177 | |
| 178 | return a.baseObject.getOwnPropStr(idx.string()) |
| 179 | } |
| 180 | |
| 181 | func (a *arrayObject) sortLen() int { |
| 182 | return len(a.values) |
no test coverage detected