Skip to content

Commit

Permalink
Fixes #8865 (#8866)
Browse files Browse the repository at this point in the history
  • Loading branch information
byronluk authored and existentialism committed Oct 12, 2018
1 parent 5080059 commit 9295675
Show file tree
Hide file tree
Showing 6 changed files with 1,372 additions and 32 deletions.
1 change: 1 addition & 0 deletions packages/babel-parser/src/tokenizer/index.js
Expand Up @@ -1087,6 +1087,7 @@ export default class Tokenizer extends LocationParser {
(ch === charCodes.lineSeparator || ch === charCodes.paragraphSeparator)
) {
++this.state.pos;
++this.state.curLine;
} else if (isNewLine(ch)) {
this.raise(this.state.start, "Unterminated string constant");
} else {
Expand Down
Expand Up @@ -8,7 +8,7 @@
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 82
}
},
Expand All @@ -22,7 +22,7 @@
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 82
}
},
Expand All @@ -40,7 +40,7 @@
"column": 0
},
"end": {
"line": 1,
"line": 2,
"column": 15
}
},
Expand All @@ -54,7 +54,7 @@
"column": 0
},
"end": {
"line": 1,
"line": 2,
"column": 14
}
},
Expand All @@ -72,11 +72,11 @@
"end": 98,
"loc": {
"start": {
"line": 2,
"line": 3,
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 82
}
}
Expand All @@ -93,11 +93,11 @@
"end": 98,
"loc": {
"start": {
"line": 2,
"line": 3,
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 82
}
}
Expand Down
Expand Up @@ -8,7 +8,7 @@
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 87
}
},
Expand All @@ -22,7 +22,7 @@
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 87
}
},
Expand All @@ -40,7 +40,7 @@
"column": 0
},
"end": {
"line": 1,
"line": 2,
"column": 15
}
},
Expand All @@ -54,7 +54,7 @@
"column": 0
},
"end": {
"line": 1,
"line": 2,
"column": 14
}
},
Expand All @@ -72,11 +72,11 @@
"end": 103,
"loc": {
"start": {
"line": 2,
"line": 3,
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 87
}
}
Expand All @@ -93,11 +93,11 @@
"end": 103,
"loc": {
"start": {
"line": 2,
"line": 3,
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 87
}
}
Expand Down
Expand Up @@ -8,7 +8,7 @@
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 83
}
},
Expand All @@ -22,7 +22,7 @@
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 83
}
},
Expand All @@ -39,7 +39,7 @@
"column": 0
},
"end": {
"line": 1,
"line": 2,
"column": 17
}
},
Expand All @@ -53,7 +53,7 @@
"column": 1
},
"end": {
"line": 1,
"line": 2,
"column": 15
}
},
Expand All @@ -73,11 +73,11 @@
"end": 101,
"loc": {
"start": {
"line": 2,
"line": 3,
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 83
}
}
Expand All @@ -95,11 +95,11 @@
"end": 101,
"loc": {
"start": {
"line": 2,
"line": 3,
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 83
}
}
Expand Down
Expand Up @@ -8,7 +8,7 @@
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 88
}
},
Expand All @@ -22,7 +22,7 @@
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 88
}
},
Expand All @@ -39,7 +39,7 @@
"column": 0
},
"end": {
"line": 1,
"line": 2,
"column": 17
}
},
Expand All @@ -53,7 +53,7 @@
"column": 1
},
"end": {
"line": 1,
"line": 2,
"column": 15
}
},
Expand All @@ -73,11 +73,11 @@
"end": 106,
"loc": {
"start": {
"line": 2,
"line": 3,
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 88
}
}
Expand All @@ -95,11 +95,11 @@
"end": 106,
"loc": {
"start": {
"line": 2,
"line": 3,
"column": 0
},
"end": {
"line": 2,
"line": 3,
"column": 88
}
}
Expand Down

0 comments on commit 9295675

Please sign in to comment.