(token, message)
| 2115 | } |
| 2116 | |
| 2117 | function tolerateUnexpectedToken(token, message) { |
| 2118 | var error = unexpectedTokenError(token, message); |
| 2119 | if (extra.errors) { |
| 2120 | recordError(error); |
| 2121 | } else { |
| 2122 | throw error; |
| 2123 | } |
| 2124 | } |
| 2125 | |
| 2126 | // Expect the next token to match the specified punctuator. |
| 2127 | // If not, an exception will be thrown. |
no test coverage detected