()
| 585 | } |
| 586 | |
| 587 | consumeSemicolon() { |
| 588 | if (this.match(';')) { |
| 589 | this.nextToken(); |
| 590 | } else if (!this.hasLineTerminator) { |
| 591 | if (this.lookahead.type !== Token.EOF && !this.match('}')) { |
| 592 | this.throwUnexpectedToken(this.lookahead); |
| 593 | } |
| 594 | this.lastMarker.index = this.startMarker.index; |
| 595 | this.lastMarker.line = this.startMarker.line; |
| 596 | this.lastMarker.column = this.startMarker.column; |
| 597 | } |
| 598 | } |
| 599 | |
| 600 | // https://tc39.github.io/ecma262/#sec-primary-expression |
| 601 |
no test coverage detected