( instance: Segmenter, key: K, value: SegmenterInternalSlots[K] )
| 532 | } |
| 533 | |
| 534 | function setSlot<K extends keyof SegmenterInternalSlots>( |
| 535 | instance: Segmenter, |
| 536 | key: K, |
| 537 | value: SegmenterInternalSlots[K] |
| 538 | ): void { |
| 539 | setInternalSlot(__INTERNAL_SLOT_MAP__, instance, key, value) |
| 540 | } |
| 541 | |
| 542 | function checkReceiver(receiver: unknown, methodName: string) { |
| 543 | if (!(receiver instanceof Segmenter)) { |
no test coverage detected