aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/js/procedure
diff options
context:
space:
mode:
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/js/procedure')
-rw-r--r--new-luxc/source/luxc/lang/translation/js/procedure/common.jvm.lux4
1 files changed, 2 insertions, 2 deletions
diff --git a/new-luxc/source/luxc/lang/translation/js/procedure/common.jvm.lux b/new-luxc/source/luxc/lang/translation/js/procedure/common.jvm.lux
index ce79bda35..685043b83 100644
--- a/new-luxc/source/luxc/lang/translation/js/procedure/common.jvm.lux
+++ b/new-luxc/source/luxc/lang/translation/js/procedure/common.jvm.lux
@@ -296,8 +296,8 @@
(def: (frac//decode inputJS)
Unary
(let [decoding (format "parseFloat(" inputJS ")")
- thunk (format "(function () {" decoding "}")]
- (lux//try decoding)))
+ thunk (self-contained (format "function () { return " decoding "; }"))]
+ (lux//try thunk)))
(do-template [<name> <transform>]
[(def: (<name> inputJS)