(idx valueInt, throw bool)
| 293 | } |
| 294 | |
| 295 | func (s *stringObject) deleteIdx(idx valueInt, throw bool) bool { |
| 296 | i := int64(idx) |
| 297 | if i >= 0 && i < int64(s.length) { |
| 298 | s.val.runtime.typeErrorResult(throw, "Cannot delete property '%d' of a String", i) |
| 299 | return false |
| 300 | } |
| 301 | |
| 302 | return s.baseObject.deleteStr(idx.string(), throw) |
| 303 | } |
| 304 | |
| 305 | func (s *stringObject) hasOwnPropertyStr(name unistring.String) bool { |
| 306 | if i := strToGoIdx(name); i >= 0 && i < s.length { |
nothing calls this directly
no test coverage detected