(name unistring.String, descr PropertyDescriptor, throw bool)
| 233 | } |
| 234 | |
| 235 | func (s *stringObject) defineOwnPropertyStr(name unistring.String, descr PropertyDescriptor, throw bool) bool { |
| 236 | if i := strToGoIdx(name); i >= 0 && i < s.length { |
| 237 | _, ok := s._defineOwnProperty(name, &valueProperty{enumerable: true}, descr, throw) |
| 238 | return ok |
| 239 | } |
| 240 | |
| 241 | return s.baseObject.defineOwnPropertyStr(name, descr, throw) |
| 242 | } |
| 243 | |
| 244 | func (s *stringObject) defineOwnPropertyIdx(idx valueInt, descr PropertyDescriptor, throw bool) bool { |
| 245 | i := int64(idx) |
nothing calls this directly
no test coverage detected