aboutsummaryrefslogtreecommitdiff
path: root/luxc
diff options
context:
space:
mode:
authorEduardo Julian2017-02-22 17:52:39 -0400
committerEduardo Julian2017-02-22 17:52:39 -0400
commitefe1e3a69663b06daeb6ba63d3d823500417b73f (patch)
tree651fb62b01b2584b8fab14a50f1475e4724cf3d7 /luxc
parent69c8192026f8cb28daa1d179a0a4c3cd2f3a0e6b (diff)
- Fixed a bug in the way characters where getting compiled to JS.
Diffstat (limited to 'luxc')
-rw-r--r--luxc/src/lux/compiler/js/lux.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/luxc/src/lux/compiler/js/lux.clj b/luxc/src/lux/compiler/js/lux.clj
index 5103b2d2b..4e7ddd8fd 100644
--- a/luxc/src/lux/compiler/js/lux.clj
+++ b/luxc/src/lux/compiler/js/lux.clj
@@ -46,7 +46,7 @@
(return (str value)))
(defn compile-char [value]
- (return (str "{C:\"" value "\"}")))
+ (return (str "{C:" (pr-str (str value)) "}")))
(defn compile-text [?value]
(return (pr-str ?value)))