aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/host/js.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)