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.lux | |
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.lux')
-rw-r--r-- | new-luxc/source/luxc/lang/translation/js.lux | 4 |
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 []))) |