diff options
| author | Joel Martin <github@martintribe.org> | 2014-04-20 23:45:58 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-04-20 23:45:58 -0500 |
| commit | a5a6605877c98a37696a30d310a29f4d1fc230e9 (patch) | |
| tree | 3342f8aea7150c60bf222d428ab00a8e0bfdf8e5 /js | |
| parent | b69553214509c606f22a984172a190d8122e70c0 (diff) | |
| download | mal-a5a6605877c98a37696a30d310a29f4d1fc230e9.tar.gz mal-a5a6605877c98a37696a30d310a29f4d1fc230e9.zip | |
Perl: add step4_if_fn_do
- Move string/printing tests to the bottom of tests/step4_if_fn_do
Diffstat (limited to 'js')
| -rw-r--r-- | js/printer.js | 2 |
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 |
