Method
getIdx
(idx valueInt, receiver Value)
Source from the content-addressed store, hash-verified
| 166 | } |
| 167 | |
| 168 | func (s *stringObject) getIdx(idx valueInt, receiver Value) Value { |
| 169 | i := int(idx) |
| 170 | if i >= 0 && i < s.length { |
| 171 | return s._getIdx(i) |
| 172 | } |
| 173 | return s.baseObject.getStr(idx.string(), receiver) |
| 174 | } |
| 175 | |
| 176 | func (s *stringObject) getOwnPropStr(name unistring.String) Value { |
| 177 | if i := strToGoIdx(name); i >= 0 && i < s.length { |
Callers
nothing calls this directly
Tested by
no test coverage detected