Expanding on #150, this allows `unexpected()` to accept the expected token type instead of a message string. This overload is then used in a couple more places (that independently implement a logic similar to `expect()`'s) to construct an `Unexpected token, expected FOO` message.
4 lines
53 B
JSON
4 lines
53 B
JSON
{
|
|
"throws": "Unexpected token, expected ; (2:4)"
|
|
}
|