lint [skip ci]
This commit is contained in:
parent
d3af158ba5
commit
9ecf763218
@ -81,7 +81,7 @@ pp.expect = function (type, pos) {
|
||||
// instead of a message string.
|
||||
|
||||
pp.unexpected = function (pos, messageOrType = "Unexpected token") {
|
||||
if (messageOrType && typeof messageOrType === 'object' && messageOrType.label) {
|
||||
if (messageOrType && typeof messageOrType === "object" && messageOrType.label) {
|
||||
messageOrType = `Unexpected token, expected ${messageOrType.label}`;
|
||||
}
|
||||
this.raise(pos != null ? pos : this.state.start, messageOrType);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user