(node: Identifier)
| 6 | const declarations: Identifier[] = []; |
| 7 | |
| 8 | function declareLocal(node: Identifier) { |
| 9 | if (defaultGlobals.has(node.name) || node.name === "arguments") { |
| 10 | throw syntaxError(`Global '${node.name}' cannot be redefined`, node, input); |
| 11 | } |
| 12 | declarations.push(node); |
| 13 | } |
| 14 | |
| 15 | function declarePattern(node: Pattern) { |
| 16 | switch (node.type) { |
no test coverage detected