(u unistring.String)
| 596 | } |
| 597 | |
| 598 | func (a *dynamicArray) getOwnPropStr(u unistring.String) Value { |
| 599 | if u == "length" { |
| 600 | return &valueProperty{ |
| 601 | value: intToValue(int64(a.a.Len())), |
| 602 | writable: true, |
| 603 | } |
| 604 | } |
| 605 | if idx, ok := strToInt(u); ok { |
| 606 | return a.a.Get(idx) |
| 607 | } |
| 608 | return nil |
| 609 | } |
| 610 | |
| 611 | func (a *dynamicArray) getOwnPropIdx(v valueInt) Value { |
| 612 | return a.a.Get(toIntStrict(int64(v))) |
nothing calls this directly
no test coverage detected