aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/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/translation/js.lux
parent9bf491a18e4b772505c3767cf0249eb24f0a822b (diff)
- Initial Lua backend implementation.
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/js.lux')
-rw-r--r--new-luxc/source/luxc/lang/translation/js.lux2
1 files changed, 1 insertions, 1 deletions
diff --git a/new-luxc/source/luxc/lang/translation/js.lux b/new-luxc/source/luxc/lang/translation/js.lux
index 063c01e25..c0cf2d0dd 100644
--- a/new-luxc/source/luxc/lang/translation/js.lux
+++ b/new-luxc/source/luxc/lang/translation/js.lux
@@ -332,7 +332,7 @@
_ (Appendable::append [(:! CharSequence (format module-code "\n"))]
program-buffer)]]
(wrap (ioC.write target
- (format module "/" module-js-name)
+ (format (module-name module) "/" module-js-name)
(|> module-code
(String::getBytes ["UTF-8"])
e.assume)))))