(p Value)
| 1450 | } |
| 1451 | |
| 1452 | func (o *Object) hasOwnProperty(p Value) bool { |
| 1453 | switch p := p.(type) { |
| 1454 | case valueInt: |
| 1455 | return o.self.hasOwnPropertyIdx(p) |
| 1456 | case *Symbol: |
| 1457 | return o.self.hasOwnPropertySym(p) |
| 1458 | default: |
| 1459 | return o.self.hasOwnPropertyStr(p.string()) |
| 1460 | } |
| 1461 | } |
| 1462 | |
| 1463 | func (o *Object) hasProperty(p Value) bool { |
| 1464 | switch p := p.(type) { |
no test coverage detected