(value)
| 2127 | // If not, an exception will be thrown. |
| 2128 | |
| 2129 | function expect(value) { |
| 2130 | var token = lex(); |
| 2131 | if (token.type !== Token.Punctuator || token.value !== value) { |
| 2132 | throwUnexpectedToken(token); |
| 2133 | } |
| 2134 | } |
| 2135 | |
| 2136 | /** |
| 2137 | * @name expectCommaSeparator |
no test coverage detected