From 38bd6f35d81705ab0c04c85601ac5b236b62605a Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Tue, 6 Mar 2018 01:07:43 -0400 Subject: - Initial Lua backend implementation. --- new-luxc/source/luxc/lang/host/js.lux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'new-luxc/source/luxc/lang/host/js.lux') 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 [ ] [(def: #export ( param subject) -- cgit v1.2.3