Fix ch that could contain other newline characters
This commit is contained in:
@@ -399,7 +399,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) {
|
|||||||
if (octal_len > 0) ch = String.fromCharCode(parseInt(ch, 8));
|
if (octal_len > 0) ch = String.fromCharCode(parseInt(ch, 8));
|
||||||
else ch = read_escaped_char(true);
|
else ch = read_escaped_char(true);
|
||||||
}
|
}
|
||||||
else if (ch == "\n") parse_error("Unterminated string constant");
|
else if ("\r\n\u2028\u2029".indexOf(ch) >= 0) parse_error("Unterminated string constant");
|
||||||
else if (ch == quote) break;
|
else if (ch == quote) break;
|
||||||
ret += ch;
|
ret += ch;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user