(otherKeyObject)
| 203 | } |
| 204 | |
| 205 | equals(otherKeyObject) { |
| 206 | if (!isKeyObject(otherKeyObject)) { |
| 207 | throw new ERR_INVALID_ARG_TYPE( |
| 208 | 'otherKeyObject', 'KeyObject', otherKeyObject); |
| 209 | } |
| 210 | |
| 211 | const slots = getKeyObjectSlots(this); |
| 212 | const otherSlots = getKeyObjectSlots(otherKeyObject); |
| 213 | return slots[kKeyObjectSlotType] === otherSlots[kKeyObjectSlotType] && |
| 214 | slots[kKeyObjectSlotHandle].equals( |
| 215 | otherSlots[kKeyObjectSlotHandle]); |
| 216 | } |
| 217 | |
| 218 | static { |
| 219 | getKeyObjectSlots = (key) => { |
no test coverage detected