(p unistring.String, v, receiver Value, throw bool)
| 820 | } |
| 821 | |
| 822 | func (a *typedArrayObject) setForeignStr(p unistring.String, v, receiver Value, throw bool) (res bool, handled bool) { |
| 823 | idx, ok := strToIntNum(p) |
| 824 | if ok { |
| 825 | if !a.isValidIntegerIndex(idx) { |
| 826 | return true, true |
| 827 | } |
| 828 | } else if idx == 0 { |
| 829 | return true, true |
| 830 | } |
| 831 | |
| 832 | return a._setForeignStr(p, a.getOwnPropStr(p), v, receiver, throw) |
| 833 | } |
| 834 | |
| 835 | func (a *typedArrayObject) setForeignIdx(p valueInt, v, receiver Value, throw bool) (res bool, handled bool) { |
| 836 | if !a.isValidIntegerIndex(toIntClamp(int64(p))) { |
nothing calls this directly
no test coverage detected