The reader understands BigInt and BigDecimal literals, but the emitter will throw an exception when it finds them.
I know CLJS does not have a proper number tower, but it should at least be able to accept literals like "1N" or "1.5M".
Attached is a patch which will cause the emitter to coerce BigInt and BigDecimal to double-approximations before emitting.
r2202
fixed https://github.com/clojure/clojurescript/commit/dbb7e43e2372dac0795ae3181a5f80b6db7d3556
Rebased to master
Please rebase this patch to master. Thanks!
The reader understands BigInt and BigDecimal literals, but the emitter will throw an exception when it finds them.
I know CLJS does not have a proper number tower, but it should at least be able to accept literals like "1N" or "1.5M".
Attached is a patch which will cause the emitter to coerce BigInt and BigDecimal to double-approximations before emitting.