public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60c4030
)
Do not allow newlines in string literals
author
Anthony Van de Gejuchte
<anthonyvdgent@gmail.com>
Sat, 26 Dec 2015 14:08:37 +0000
(15:08 +0100)
committer
Anthony Van de Gejuchte
<anthonyvdgent@gmail.com>
Sat, 26 Dec 2015 14:08:37 +0000
(15:08 +0100)
lib/parse.js
patch
|
blob
|
history
diff --git
a/lib/parse.js
b/lib/parse.js
index
4d06ae0
..
7e7b227
100644
(file)
--- a/
lib/parse.js
+++ b/
lib/parse.js
@@
-399,6
+399,7
@@
function tokenizer($TEXT, filename, html5_comments, shebang) {
if (octal_len > 0) ch = String.fromCharCode(parseInt(ch, 8));
else ch = read_escaped_char(true);
}
+ else if (ch == "\n") parse_error("Unterminated string constant");
else if (ch == quote) break;
ret += ch;
}