We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f4b7837 + 3bd7ce5 commit 92abe0aCopy full SHA for 92abe0a
1 file changed
lib/parse.js
@@ -58,7 +58,7 @@ CSSOM.parse = function parse(token) {
58
var parseError = function(message) {
59
var lines = token.substring(0, i).split('\n');
60
var lineCount = lines.length;
61
- var charCount = lines.pop().length;
+ var charCount = lines.pop().length + 1;
62
var error = new Error(message + ' (line ' + lineCount + ', char ' + charCount + ')');
63
error.line = lineCount;
64
error.char = charCount;
0 commit comments