ekibun / flutter_qjs

A quickjs engine for flutter.
https://pub.dev/packages/flutter_qjs
MIT License
146 stars 28 forks source link

BigInt support #33

Open Xyzcancer opened 1 year ago

Xyzcancer commented 1 year ago

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

Xyzcancer commented 1 year ago

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

Xyzcancer commented 1 year ago

@ekibun could you please help me with that?

ekibun commented 1 year ago

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.