(name unistring.String)
| 285 | } |
| 286 | |
| 287 | func (a *sparseArrayObject) hasOwnPropertyStr(name unistring.String) bool { |
| 288 | if idx := strToArrayIdx(name); idx != math.MaxUint32 { |
| 289 | i := a.findIdx(idx) |
| 290 | return i < len(a.items) && a.items[i].idx == idx |
| 291 | } else { |
| 292 | return a.baseObject.hasOwnPropertyStr(name) |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | func (a *sparseArrayObject) hasOwnPropertyIdx(idx valueInt) bool { |
| 297 | if idx := toIdx(idx); idx != math.MaxUint32 { |
nothing calls this directly
no test coverage detected