(node: Node)
| 2033 | } |
| 2034 | |
| 2035 | function tooComplex(node: Node): ParseForSecurityResult { |
| 2036 | const reason = |
| 2037 | node.type === 'ERROR' |
| 2038 | ? 'Parse error' |
| 2039 | : DANGEROUS_TYPES.has(node.type) |
| 2040 | ? `Contains ${node.type}` |
| 2041 | : `Unhandled node type: ${node.type}` |
| 2042 | return { kind: 'too-complex', reason, nodeType: node.type } |
| 2043 | } |
| 2044 | |
| 2045 | // ──────────────────────────────────────────────────────────────────────────── |
| 2046 | // Post-argv semantic checks |
no test coverage detected