Open StefanRichterHuber opened 4 months ago
Rquickjs should build QuickJS with support for BigDecimal and BigFloat. There just currently isn't any special support for those object on the rust side.
The problem is that the C interface of QuickJS doesn't expose any method for working with BigDecimal and BigFloat objects. Adding support to use these methods through the rquickjs would require more patches to the QuickJS library. Something I have done some experiments with but with no result currently.
The current BigInt support on the rust side is rather limited for the same reason.
I am currently working on a Java - QuickJS bridge using jni and rquickjs as "middleware" between both worlds. Unfortunately rquickjs does not seem to support the types behind the
bignum
flag in QuickJS:BigDecimal object, BigFloat object and the "use math" directive.
Can you give me a hint how to enable the support?