(handleOrWrapper)
| 6 | class NativeStruct { |
| 7 | |
| 8 | constructor(handleOrWrapper) { |
| 9 | if (handleOrWrapper instanceof NativePointer) { |
| 10 | this.handle = handleOrWrapper; |
| 11 | } else { |
| 12 | this.handle = handleOrWrapper.handle; |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | equals(other) { |
| 17 | return this.handle.equals(other.handle); |
nothing calls this directly
no outgoing calls
no test coverage detected