From 2ec51eee557b7a70a2e19e2d86b86e478ab24d52 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 21 Feb 2018 23:50:39 -0400 Subject: - Changed the format for variants in JS. - Fixed a bug when decoding fracs. --- new-luxc/source/luxc/lang/translation/js.lux | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'new-luxc/source/luxc/lang/translation/js.lux') 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 []))) -- cgit v1.2.3