aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Ficarra <github@michael.ficarra.me>2015-10-27 09:05:21 -0700
committerMichael Ficarra <github@michael.ficarra.me>2015-10-27 09:05:21 -0700
commita887cde9f295a9ac89c8f09417db5901b655dfba (patch)
treebe009f4f383f4dbdfcb9f13623c95d4dc9c3ea6d
parentb5623b19d499748d0b1cf97204180f9d4d2fc4a1 (diff)
downloadtracifyjs-a887cde9f295a9ac89c8f09417db5901b655dfba.tar.gz
tracifyjs-a887cde9f295a9ac89c8f09417db5901b655dfba.zip
fixes #845: \v escaping should be restricted to "screw_ie8" mode
-rw-r--r--lib/output.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output.js b/lib/output.js
index 7d1e5dbb..5d75e703 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 '"';