(name unistring.String, val Value, throw bool)
| 257 | } |
| 258 | |
| 259 | func (a *arrayObject) setOwnStr(name unistring.String, val Value, throw bool) bool { |
| 260 | if idx := strToArrayIdx(name); idx != math.MaxUint32 { |
| 261 | return a._setOwnIdx(idx, val, throw) |
| 262 | } else { |
| 263 | if name == "length" { |
| 264 | return a.setLength(a.val.runtime.toLengthUint32(val), throw) |
| 265 | } else { |
| 266 | return a.baseObject.setOwnStr(name, val, throw) |
| 267 | } |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | func (a *arrayObject) setForeignIdx(idx valueInt, val, receiver Value, throw bool) (bool, bool) { |
| 272 | return a._setForeignIdx(idx, a.getOwnPropIdx(idx), val, receiver, throw) |
nothing calls this directly
no test coverage detected