(keyword)
| 1921 | // If not, an exception will be thrown. |
| 1922 | |
| 1923 | function expectKeyword(keyword) { |
| 1924 | var token = lex(); |
| 1925 | if (token.type !== Token.Keyword || token.value !== keyword) { |
| 1926 | throwUnexpected(token); |
| 1927 | } |
| 1928 | } |
| 1929 | |
| 1930 | // Return true if the next token matches the specified punctuator. |
| 1931 |
no test coverage detected