(name unistring.String)
| 154 | } |
| 155 | |
| 156 | func (a *arrayObject) getOwnPropStr(name unistring.String) Value { |
| 157 | if len(a.values) > 0 { |
| 158 | if i := strToArrayIdx(name); i != math.MaxUint32 { |
| 159 | if i < uint32(len(a.values)) { |
| 160 | return a.values[i] |
| 161 | } |
| 162 | } |
| 163 | } |
| 164 | if name == "length" { |
| 165 | return a.getLengthProp() |
| 166 | } |
| 167 | return a.baseObject.getOwnPropStr(name) |
| 168 | } |
| 169 | |
| 170 | func (a *arrayObject) getOwnPropIdx(idx valueInt) Value { |
| 171 | if i := toIdx(idx); i != math.MaxUint32 { |
no test coverage detected