(value)
| 5180 | // If not, an exception will be thrown. |
| 5181 | |
| 5182 | function expect(value) { |
| 5183 | var token = lex(); |
| 5184 | if (token.type !== Token.Punctuator || token.value !== value) { |
| 5185 | throwUnexpected(token); |
| 5186 | } |
| 5187 | } |
| 5188 | |
| 5189 | // Expect the next token to match the specified keyword. |
| 5190 | // If not, an exception will be thrown. |
no test coverage detected