MCPcopy
hub / github.com/formatjs/formatjs / setSlot

Function setSlot

packages/intl-segmenter/segmenter.ts:534–540  ·  view source on GitHub ↗
(
  instance: Segmenter,
  key: K,
  value: SegmenterInternalSlots[K]
)

Source from the content-addressed store, hash-verified

532}
533
534function 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
542function checkReceiver(receiver: unknown, methodName: string) {
543 if (!(receiver instanceof Segmenter)) {

Callers 1

constructorMethod · 0.70

Calls 1

setInternalSlotFunction · 0.85

Tested by

no test coverage detected