(this: Parser, node: Undone<N.ThrowStatement>)
| 1041 | } |
| 1042 | |
| 1043 | parseThrowStatement(this: Parser, node: Undone<N.ThrowStatement>) { |
| 1044 | this.next(); |
| 1045 | if (this.hasPrecedingLineBreak()) { |
| 1046 | this.raise(Errors.NewlineAfterThrow, this.state.lastTokEndLoc!); |
| 1047 | } |
| 1048 | node.argument = this.parseExpression(); |
| 1049 | this.semicolon(); |
| 1050 | return this.finishNode(node, "ThrowStatement"); |
| 1051 | } |
| 1052 | |
| 1053 | parseCatchClauseParam(this: Parser) { |
| 1054 | const param = this.parseBindingAtom(); |
nothing calls this directly
no test coverage detected