[Pkg-javascript-commits] [uglifyjs] 60/77: Fix parsing for U+2028 / U+2029
Jonas Smedegaard
dr at jones.dk
Tue May 19 00:02:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v2.4.18
in repository uglifyjs.
commit d36faffecae72e40ad71585334fd93d56479b820
Author: Mihai Bazon <mihai.bazon at gmail.com>
Date: Wed Mar 18 10:09:30 2015 +0200
Fix parsing for U+2028 / U+2029
(they should be treated as whitespace)
---
lib/parse.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/parse.js b/lib/parse.js
index 0e269ab..95a9f77 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -298,7 +298,8 @@ function tokenizer($TEXT, filename, html5_comments) {
};
function skip_whitespace() {
- while (WHITESPACE_CHARS(peek()))
+ var ch;
+ while (WHITESPACE_CHARS(ch = peek()) || ch == "\u2028" || ch == "\u2029")
next();
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list