(name unistring.String)
| 123 | } |
| 124 | |
| 125 | func (a *sparseArrayObject) getOwnPropStr(name unistring.String) Value { |
| 126 | if idx := strToArrayIdx(name); idx != math.MaxUint32 { |
| 127 | return a._getIdx(idx) |
| 128 | } |
| 129 | if name == "length" { |
| 130 | return a.getLengthProp() |
| 131 | } |
| 132 | return a.baseObject.getOwnPropStr(name) |
| 133 | } |
| 134 | |
| 135 | func (a *sparseArrayObject) getOwnPropIdx(idx valueInt) Value { |
| 136 | if idx := toIdx(idx); idx != math.MaxUint32 { |
no test coverage detected