(idx valueInt, descr PropertyDescriptor, throw bool)
| 242 | } |
| 243 | |
| 244 | func (s *stringObject) defineOwnPropertyIdx(idx valueInt, descr PropertyDescriptor, throw bool) bool { |
| 245 | i := int64(idx) |
| 246 | if i >= 0 && i < int64(s.length) { |
| 247 | s.val.runtime.typeErrorResult(throw, "Cannot redefine property: %d", i) |
| 248 | return false |
| 249 | } |
| 250 | |
| 251 | return s.baseObject.defineOwnPropertyStr(idx.string(), descr, throw) |
| 252 | } |
| 253 | |
| 254 | type stringPropIter struct { |
| 255 | str String // separate, because obj can be the singleton |
nothing calls this directly
no test coverage detected