(instance: any, method: string)
| 94 | } |
| 95 | |
| 96 | function validateInstance(instance: any, method: string) { |
| 97 | if (!(instance instanceof ListFormat)) { |
| 98 | throw new TypeError( |
| 99 | `Method Intl.ListFormat.prototype.${method} called on incompatible receiver ${String( |
| 100 | instance |
| 101 | )}` |
| 102 | ) |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | /** |
| 107 | * https://tc39.es/proposal-intl-list-format/#sec-createstringlistfromiterable |
no outgoing calls
no test coverage detected