(name unistring.String, descr PropertyDescriptor, throw bool)
| 445 | } |
| 446 | |
| 447 | func (a *arrayObject) defineOwnPropertyStr(name unistring.String, descr PropertyDescriptor, throw bool) bool { |
| 448 | if idx := strToArrayIdx(name); idx != math.MaxUint32 { |
| 449 | return a._defineIdxProperty(idx, descr, throw) |
| 450 | } |
| 451 | if name == "length" { |
| 452 | return a.val.runtime.defineArrayLength(a.getLengthProp(), descr, a.setLength, throw) |
| 453 | } |
| 454 | return a.baseObject.defineOwnPropertyStr(name, descr, throw) |
| 455 | } |
| 456 | |
| 457 | func (a *arrayObject) defineOwnPropertyIdx(idx valueInt, descr PropertyDescriptor, throw bool) bool { |
| 458 | if idx := toIdx(idx); idx != math.MaxUint32 { |
nothing calls this directly
no test coverage detected