MCPcopy Index your code
hub / github.com/formatjs/formatjs / checkReceiver

Function checkReceiver

packages/intl-segmenter/segmenter.ts:542–548  ·  view source on GitHub ↗
(receiver: unknown, methodName: string)

Source from the content-addressed store, hash-verified

540}
541
542function checkReceiver(receiver: unknown, methodName: string) {
543 if (!(receiver instanceof Segmenter)) {
544 throw TypeError(
545 `Method Intl.Segmenter.prototype.${methodName} called on incompatible receiver`
546 )
547 }
548}
549
550try {
551 // IE11 does not have Symbol

Callers 2

segmentMethod · 0.70
resolvedOptionsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected