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.
5 lines
87 B
JSON
5 lines
87 B
JSON
{
|
|
"throws": "Unexpected token, expected ; (3:9)",
|
|
"plugins": ["classProperties"]
|
|
}
|