(p Value)
| 1461 | } |
| 1462 | |
| 1463 | func (o *Object) hasProperty(p Value) bool { |
| 1464 | switch p := p.(type) { |
| 1465 | case valueInt: |
| 1466 | return o.self.hasPropertyIdx(p) |
| 1467 | case *Symbol: |
| 1468 | return o.self.hasPropertySym(p) |
| 1469 | default: |
| 1470 | return o.self.hasPropertyStr(p.string()) |
| 1471 | } |
| 1472 | } |
| 1473 | |
| 1474 | func (o *Object) setStr(name unistring.String, val, receiver Value, throw bool) bool { |
| 1475 | if receiver == o { |
no test coverage detected