(p unistring.String, v Value, throw bool)
| 621 | } |
| 622 | |
| 623 | func (a *dynamicArray) setOwnStr(p unistring.String, v Value, throw bool) bool { |
| 624 | if p == "length" { |
| 625 | return a._setLen(v, throw) |
| 626 | } |
| 627 | if idx, ok := strToInt(p); ok { |
| 628 | return a._setIdx(idx, v, throw) |
| 629 | } |
| 630 | typeErrorResult(throw, "Cannot set property %q on a dynamic array", p.String()) |
| 631 | return false |
| 632 | } |
| 633 | |
| 634 | func (a *dynamicArray) _setIdx(idx int, v Value, throw bool) bool { |
| 635 | if a.a.Set(idx, v) { |
nothing calls this directly
no test coverage detected