(idx valueInt, val Value, throw bool)
| 215 | } |
| 216 | |
| 217 | func (s *stringObject) setOwnIdx(idx valueInt, val Value, throw bool) bool { |
| 218 | i := int64(idx) |
| 219 | if i >= 0 && i < int64(s.length) { |
| 220 | s.val.runtime.typeErrorResult(throw, "Cannot assign to read only property '%d' of a String", i) |
| 221 | return false |
| 222 | } |
| 223 | |
| 224 | return s.baseObject.setOwnStr(idx.string(), val, throw) |
| 225 | } |
| 226 | |
| 227 | func (s *stringObject) setForeignStr(name unistring.String, val, receiver Value, throw bool) (bool, bool) { |
| 228 | return s._setForeignStr(name, s.getOwnPropStr(name), val, receiver, throw) |
nothing calls this directly
no test coverage detected