(idx valueInt)
| 294 | } |
| 295 | |
| 296 | func (a *sparseArrayObject) hasOwnPropertyIdx(idx valueInt) bool { |
| 297 | if idx := toIdx(idx); idx != math.MaxUint32 { |
| 298 | i := a.findIdx(idx) |
| 299 | return i < len(a.items) && a.items[i].idx == idx |
| 300 | } |
| 301 | |
| 302 | return a.baseObject.hasOwnPropertyStr(idx.string()) |
| 303 | } |
| 304 | |
| 305 | func (a *sparseArrayObject) hasPropertyIdx(idx valueInt) bool { |
| 306 | if a.hasOwnPropertyIdx(idx) { |
no test coverage detected