(name unistring.String, throw bool)
| 284 | } |
| 285 | |
| 286 | func (s *stringObject) deleteStr(name unistring.String, throw bool) bool { |
| 287 | if i := strToGoIdx(name); i >= 0 && i < s.length { |
| 288 | s.val.runtime.typeErrorResult(throw, "Cannot delete property '%d' of a String", i) |
| 289 | return false |
| 290 | } |
| 291 | |
| 292 | return s.baseObject.deleteStr(name, throw) |
| 293 | } |
| 294 | |
| 295 | func (s *stringObject) deleteIdx(idx valueInt, throw bool) bool { |
| 296 | i := int64(idx) |
nothing calls this directly
no test coverage detected