(name unistring.String, descr PropertyDescriptor, throw bool)
| 226 | } |
| 227 | |
| 228 | func (o *templatedObject) defineOwnPropertyStr(name unistring.String, descr PropertyDescriptor, throw bool) bool { |
| 229 | existingVal := o.getOwnPropStr(name) |
| 230 | if v, ok := o._defineOwnProperty(name, existingVal, descr, throw); ok { |
| 231 | o.values[name] = v |
| 232 | if existingVal == nil { |
| 233 | o.materialisePropNames() |
| 234 | names := copyNamesIfNeeded(o.propNames, 1) |
| 235 | o.propNames = append(names, name) |
| 236 | } |
| 237 | return true |
| 238 | } |
| 239 | return false |
| 240 | } |
| 241 | |
| 242 | func (o *templatedObject) defineOwnPropertySym(s *Symbol, descr PropertyDescriptor, throw bool) bool { |
| 243 | o.materialiseSymbols() |
no test coverage detected