[Pkg-javascript-commits] [uglifyjs] 48/190: fixes #845: \v escaping should be restricted to "screw_ie8" mode

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Aug 7 23:17:12 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag upstream/2.7.0
in repository uglifyjs.

commit a887cde9f295a9ac89c8f09417db5901b655dfba
Author: Michael Ficarra <github at michael.ficarra.me>
Date:   Tue Oct 27 09:05:21 2015 -0700

    fixes #845: \v escaping should be restricted to "screw_ie8" mode
---
 lib/output.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/output.js b/lib/output.js
index 7d1e5db..5d75e70 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -95,7 +95,7 @@ function OutputStream(options) {
               case "\f": return "\\f";
               case "\n": return "\\n";
               case "\r": return "\\r";
-              case "\v": return "\\v";
+              case "\x0B": return output.option("screw_ie8") ? "\\v" : "\\x0B";
               case "\u2028": return "\\u2028";
               case "\u2029": return "\\u2029";
               case '"': ++dq; return '"';

-- 
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