From: Mihai Bazon Date: Wed, 18 Mar 2015 08:09:30 +0000 (+0200) Subject: Fix parsing for U+2028 / U+2029 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=d36faffecae72e40ad71585334fd93d56479b820;p=UglifyJS.git Fix parsing for U+2028 / U+2029 (they should be treated as whitespace) --- diff --git a/lib/parse.js b/lib/parse.js index 0e269ab7..95a9f776 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(); };