(p unistring.String, v Value, throw bool)
| 251 | } |
| 252 | |
| 253 | func (o *dynamicObject) setOwnStr(p unistring.String, v Value, throw bool) bool { |
| 254 | prop := p.String() |
| 255 | if !o.d.Has(prop) { |
| 256 | if proto := o.prototype; proto != nil { |
| 257 | // we know it's foreign because prototype loops are not allowed |
| 258 | if res, handled := proto.self.setForeignStr(p, v, o.val, throw); handled { |
| 259 | return res |
| 260 | } |
| 261 | } |
| 262 | } |
| 263 | return o._set(prop, v, throw) |
| 264 | } |
| 265 | |
| 266 | func (o *dynamicObject) setOwnIdx(p valueInt, v Value, throw bool) bool { |
| 267 | prop := p.String() |
nothing calls this directly
no test coverage detected