ekibun/flutter_qjs

BigInt support

Xyzcancer opened this issue · 3 comments

Hi, I'm trying to use this script https://unpkg.com/@solana/web3.js@latest/lib/index.iife.js

But evaluation fails with error ReferenceError: 'BigInt' is not defined

Can you explain who is responsible for supporting this class? ffi or you can add this support?

Thanks

I see that quickjs should support it https://bellard.org/quickjs/

@ekibun could you please help me with that?

I have no spare time to add this feature. And there are no corresponding type in dart for bingint. You can add this feature by enabling it in the Cmakelists. Maybe the ffi should be modified accordingly.