(n Value, desc PropertyDescriptor, throw bool)
| 1613 | } |
| 1614 | |
| 1615 | func (o *Object) defineOwnProperty(n Value, desc PropertyDescriptor, throw bool) bool { |
| 1616 | switch n := n.(type) { |
| 1617 | case valueInt: |
| 1618 | return o.self.defineOwnPropertyIdx(n, desc, throw) |
| 1619 | case *Symbol: |
| 1620 | return o.self.defineOwnPropertySym(n, desc, throw) |
| 1621 | default: |
| 1622 | return o.self.defineOwnPropertyStr(n.string(), desc, throw) |
| 1623 | } |
| 1624 | } |
| 1625 | |
| 1626 | func (o *Object) getId() uint64 { |
| 1627 | return uint64(uintptr(unsafe.Pointer(o))) |
no test coverage detected