Explorar o código

added missing use of Token class

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
5166167fd0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/single-file/css-declarations-parser.js

+ 1 - 1
lib/single-file/css-declarations-parser.js

@@ -581,7 +581,7 @@ this.parseCss = this.parseCss || (() => {
 		tokenAt(i) {
 			if (i < this.tokens.length)
 				return this.tokens[i];
-			return { tokenType: EOF_TOKEN_TYPE };
+			return new Token(EOF_TOKEN_TYPE);
 		}
 		consume(num) {
 			if (num === undefined)