()
| 2549 | // https://tc39.github.io/ecma262/#sec-throw-statement |
| 2550 | |
| 2551 | parseThrowStatement(): Node.ThrowStatement { |
| 2552 | const node = this.createNode(); |
| 2553 | this.expectKeyword('throw'); |
| 2554 | |
| 2555 | if (this.hasLineTerminator) { |
| 2556 | this.throwError(Messages.NewlineAfterThrow); |
| 2557 | } |
| 2558 | |
| 2559 | const argument = this.parseExpression(); |
| 2560 | this.consumeSemicolon(); |
| 2561 | |
| 2562 | return this.finalize(node, new Node.ThrowStatement(argument)); |
| 2563 | } |
| 2564 | |
| 2565 | // https://tc39.github.io/ecma262/#sec-try-statement |
| 2566 |
no test coverage detected