(type: string, props: Props)
| 289 | } |
| 290 | |
| 291 | function shouldSetTextContent(type: string, props: Props): boolean { |
| 292 | if (type === 'errorInBeginPhase') { |
| 293 | throw new Error('Error in host config.'); |
| 294 | } |
| 295 | return ( |
| 296 | typeof props.children === 'string' || |
| 297 | typeof props.children === 'number' || |
| 298 | typeof props.children === 'bigint' |
| 299 | ); |
| 300 | } |
| 301 | |
| 302 | function computeText(rawText, hostContext) { |
| 303 | return hostContext === UPPERCASE_CONTEXT ? rawText.toUpperCase() : rawText; |
no outgoing calls
no test coverage detected