(name unistring.String, desc PropertyDescriptor, throw bool)
| 690 | } |
| 691 | |
| 692 | func (a *dynamicArray) defineOwnPropertyStr(name unistring.String, desc PropertyDescriptor, throw bool) bool { |
| 693 | if a.checkDynamicObjectPropertyDescr(name, desc, throw) { |
| 694 | if idx, ok := strToInt(name); ok { |
| 695 | return a._setIdx(idx, desc.Value, throw) |
| 696 | } |
| 697 | typeErrorResult(throw, "Cannot define property %q on a dynamic array", name.String()) |
| 698 | } |
| 699 | return false |
| 700 | } |
| 701 | |
| 702 | func (a *dynamicArray) defineOwnPropertyIdx(name valueInt, desc PropertyDescriptor, throw bool) bool { |
| 703 | if a.checkDynamicObjectPropertyDescr(name, desc, throw) { |
nothing calls this directly
no test coverage detected