(name unistring.String, receiver Value)
| 159 | } |
| 160 | |
| 161 | func (s *stringObject) getStr(name unistring.String, receiver Value) Value { |
| 162 | if i := strToGoIdx(name); i >= 0 && i < s.length { |
| 163 | return s._getIdx(i) |
| 164 | } |
| 165 | return s.baseObject.getStr(name, receiver) |
| 166 | } |
| 167 | |
| 168 | func (s *stringObject) getIdx(idx valueInt, receiver Value) Value { |
| 169 | i := int(idx) |
nothing calls this directly
no test coverage detected