fixes #845: \v escaping should be restricted to "screw_ie8" mode
authorMichael Ficarra <github@michael.ficarra.me>
Tue, 27 Oct 2015 16:05:21 +0000 (09:05 -0700)
committerMichael Ficarra <github@michael.ficarra.me>
Tue, 27 Oct 2015 16:05:21 +0000 (09:05 -0700)
lib/output.js

index 7d1e5db..5d75e70 100644 (file)
@@ -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 '"';