aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/host/js.lux
diff options
context:
space:
mode:
authorEduardo Julian2018-03-06 01:07:43 -0400
committerEduardo Julian2018-03-06 01:07:43 -0400
commit38bd6f35d81705ab0c04c85601ac5b236b62605a (patch)
tree4c2fd4f6369067965017aeea18ba68b1f658344d /new-luxc/source/luxc/lang/host/js.lux
parent9bf491a18e4b772505c3767cf0249eb24f0a822b (diff)
- Initial Lua backend implementation.
Diffstat (limited to 'new-luxc/source/luxc/lang/host/js.lux')
-rw-r--r--new-luxc/source/luxc/lang/host/js.lux4
1 files changed, 2 insertions, 2 deletions
diff --git a/new-luxc/source/luxc/lang/host/js.lux b/new-luxc/source/luxc/lang/host/js.lux
index 7ef948abb..41dc0965e 100644
--- a/new-luxc/source/luxc/lang/host/js.lux
+++ b/new-luxc/source/luxc/lang/host/js.lux
@@ -77,12 +77,12 @@
(def: #export (object fields)
(-> (List [Text Expression]) Expression)
- (format "{"
+ (format "({"
(|> fields
(list/map (.function [[key val]]
(format key ": " val)))
(text.join-with ", "))
- "}"))
+ "})"))
(do-template [<name> <op>]
[(def: #export (<name> param subject)