(value)
| 438 | // If not, an exception will be thrown. |
| 439 | |
| 440 | expect(value) { |
| 441 | const token = this.nextToken(); |
| 442 | if (token.type !== Token.Punctuator || token.value !== value) { |
| 443 | this.throwUnexpectedToken(token); |
| 444 | } |
| 445 | } |
| 446 | |
| 447 | // Quietly expect a comma when in tolerant mode, otherwise delegates to expect(). |
| 448 |
no test coverage detected