diff options
author | Eduardo Julian | 2018-02-21 23:50:39 -0400 |
---|---|---|
committer | Eduardo Julian | 2018-02-21 23:50:39 -0400 |
commit | 2ec51eee557b7a70a2e19e2d86b86e478ab24d52 (patch) | |
tree | 78e2b91934c646f716d231ce91775b02dd22e373 /new-luxc/source/luxc/lang/translation/js/procedure | |
parent | 4369bd0ee320d85590efa9c71db591200fb54cd2 (diff) |
- Changed the format for variants in JS.
- Fixed a bug when decoding fracs.
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/js/procedure')
-rw-r--r-- | new-luxc/source/luxc/lang/translation/js/procedure/common.jvm.lux | 4 |
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) |