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.
3 lines
52 B
JSON
3 lines
52 B
JSON
{
|
|
"throws": "Unexpected token, expected ; (2:4)"
|
|
} |