aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/printer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/printer.js b/js/printer.js
index 575072e..5f0e03d 100644
--- a/js/printer.js
+++ b/js/printer.js
@@ -31,7 +31,7 @@ function _pr_str(obj, print_readably) {
}
return "{" + ret.join(' ') + "}";
case 'string':
- if (print_readably) {
+ if (_r) {
return '"' + obj.replace(/\\/, "\\\\")
.replace(/"/g, '\\"')
.replace(/\n/g, "\\n") + '"'; // string