(name unistring.String, val Value, throw bool)
| 204 | } |
| 205 | |
| 206 | func (a *sparseArrayObject) setOwnStr(name unistring.String, val Value, throw bool) bool { |
| 207 | if idx := strToArrayIdx(name); idx != math.MaxUint32 { |
| 208 | return a._setOwnIdx(idx, val, throw) |
| 209 | } else { |
| 210 | if name == "length" { |
| 211 | return a.setLength(a.val.runtime.toLengthUint32(val), throw) |
| 212 | } else { |
| 213 | return a.baseObject.setOwnStr(name, val, throw) |
| 214 | } |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | func (a *sparseArrayObject) setOwnIdx(idx valueInt, val Value, throw bool) bool { |
| 219 | if idx := toIdx(idx); idx != math.MaxUint32 { |
nothing calls this directly
no test coverage detected