(idx valueInt)
| 310 | } |
| 311 | |
| 312 | func (s *stringObject) hasOwnPropertyIdx(idx valueInt) bool { |
| 313 | i := int64(idx) |
| 314 | if i >= 0 && i < int64(s.length) { |
| 315 | return true |
| 316 | } |
| 317 | return s.baseObject.hasOwnPropertyStr(idx.string()) |
| 318 | } |
| 319 | |
| 320 | func devirtualizeString(s String) (asciiString, unicodeString) { |
| 321 | switch s := s.(type) { |
nothing calls this directly
no test coverage detected