fixes #845: \v escaping should be restricted to "screw_ie8" mode

This commit is contained in:
Michael Ficarra
2015-10-27 09:05:21 -07:00
parent b5623b19d4
commit a887cde9f2

View 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 '"';