Skip to content

Commit 5fc9aea

Browse files
committed
Fix undefined token
1 parent 50fe836 commit 5fc9aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parse-css.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ class TokenStream {
893893
}
894894

895895
function parseerror(s, msg) {
896-
console.log("Parse error at token " + s.i + ": " + s.tokens[s.i] + ".\n" + msg);
896+
console.log("Parse error at token " + s.i + ": " + s.nextToken() + ".\n" + msg);
897897
return true;
898898
}
899899

0 commit comments

Comments
 (0)