aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/js.lux
diff options
context:
space:
mode:
authorEduardo Julian2018-02-21 23:50:39 -0400
committerEduardo Julian2018-02-21 23:50:39 -0400
commit2ec51eee557b7a70a2e19e2d86b86e478ab24d52 (patch)
tree78e2b91934c646f716d231ce91775b02dd22e373 /new-luxc/source/luxc/lang/translation/js.lux
parent4369bd0ee320d85590efa9c71db591200fb54cd2 (diff)
- Changed the format for variants in JS.
- Fixed a bug when decoding fracs.
Diffstat (limited to 'new-luxc/source/luxc/lang/translation/js.lux')
-rw-r--r--new-luxc/source/luxc/lang/translation/js.lux4
1 files changed, 4 insertions, 0 deletions
diff --git a/new-luxc/source/luxc/lang/translation/js.lux b/new-luxc/source/luxc/lang/translation/js.lux
index 680439355..a28d9c3db 100644
--- a/new-luxc/source/luxc/lang/translation/js.lux
+++ b/new-luxc/source/luxc/lang/translation/js.lux
@@ -212,6 +212,10 @@
(def: #export int-high-field Text "H")
(def: #export int-low-field Text "L")
+(def: #export variant-tag-field "_lux_tag")
+(def: #export variant-flag-field "_lux_flag")
+(def: #export variant-value-field "_lux_value")
+
(def: jvm-int
(-> Nat Integer)
(|>> (:! Long) (Long::intValue [])))