(name unistring.String, descr PropertyDescriptor, throw bool)
| 374 | } |
| 375 | |
| 376 | func (a *sparseArrayObject) defineOwnPropertyStr(name unistring.String, descr PropertyDescriptor, throw bool) bool { |
| 377 | if idx := strToArrayIdx(name); idx != math.MaxUint32 { |
| 378 | return a._defineIdxProperty(idx, descr, throw) |
| 379 | } |
| 380 | if name == "length" { |
| 381 | return a.val.runtime.defineArrayLength(a.getLengthProp(), descr, a.setLength, throw) |
| 382 | } |
| 383 | return a.baseObject.defineOwnPropertyStr(name, descr, throw) |
| 384 | } |
| 385 | |
| 386 | func (a *sparseArrayObject) defineOwnPropertyIdx(idx valueInt, descr PropertyDescriptor, throw bool) bool { |
| 387 | if idx := toIdx(idx); idx != math.MaxUint32 { |
nothing calls this directly
no test coverage detected