Ver Fonte

added missing use of Token class

Gildas há 7 anos atrás
pai
commit
5166167fd0
1 ficheiros alterados com 1 adições e 1 exclusões
  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)