Simplified newline check in strings.

This commit is contained in:
Ingvar Stepanyan 2014-07-26 09:44:06 +03:00 committed by Marijn Haverbeke
parent 1955e94925
commit 67615ffd41

View File

@ -975,7 +975,7 @@
}
} else {
++tokPos;
if (ch === 13 || ch === 10 || ch === 8232 || ch === 8233) {
if (newline.test(String.fromCharCode(ch))) {
if (inTemplate) {
if (ch === 13 && input.charCodeAt(tokPos) === 10) {
++tokPos;