(name unistring.String)
| 174 | } |
| 175 | |
| 176 | func (s *stringObject) getOwnPropStr(name unistring.String) Value { |
| 177 | if i := strToGoIdx(name); i >= 0 && i < s.length { |
| 178 | val := s._getIdx(i) |
| 179 | return &valueProperty{ |
| 180 | value: val, |
| 181 | enumerable: true, |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | return s.baseObject.getOwnPropStr(name) |
| 186 | } |
| 187 | |
| 188 | func (s *stringObject) getOwnPropIdx(idx valueInt) Value { |
| 189 | i := int64(idx) |
no test coverage detected