(s *Symbol, descr PropertyDescriptor, throw bool)
| 769 | } |
| 770 | |
| 771 | func (o *baseObject) defineOwnPropertySym(s *Symbol, descr PropertyDescriptor, throw bool) bool { |
| 772 | var existingVal Value |
| 773 | if o.symValues != nil { |
| 774 | existingVal = o.symValues.get(s) |
| 775 | } |
| 776 | if v, ok := o._defineOwnProperty(s.descriptiveString().string(), existingVal, descr, throw); ok { |
| 777 | if o.symValues == nil { |
| 778 | o.symValues = newOrderedMap(nil) |
| 779 | } |
| 780 | o.symValues.set(s, v) |
| 781 | return true |
| 782 | } |
| 783 | return false |
| 784 | } |
| 785 | |
| 786 | func (o *baseObject) _put(name unistring.String, v Value) { |
| 787 | if _, exists := o.values[name]; !exists { |
nothing calls this directly
no test coverage detected