Web3.js: Use JavaScript BigInt for big integers?

Created on 21 Feb 2020  路  2Comments  路  Source: ChainSafe/web3.js

Now that JavaScript support big integers natively, is there any plan to use them in a future release of web3? It would make it a lot easier to work with amounts rather than passing strings / objects around.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt

Most helpful comment

Hey @olalonde,

This is a personal dream of mine, but unluckily, they can't be used yet.

JavaScriptCore (Safari's js engine) has no support for native BigInt. This is incredibly problematic, as every browser is forced to use Webkit and JavaScript core in iOS.

All 2 comments

Hey @olalonde,

This is a personal dream of mine, but unluckily, they can't be used yet.

JavaScriptCore (Safari's js engine) has no support for native BigInt. This is incredibly problematic, as every browser is forced to use Webkit and JavaScript core in iOS.

Will close here again for the moment, would nevertheless agree that it would be wonderful to be able to support native big integers at some PIT.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zamoore picture zamoore  路  3Comments

ragnu picture ragnu  路  3Comments

xpepermint picture xpepermint  路  3Comments

FradSer picture FradSer  路  3Comments

dzarezenko picture dzarezenko  路  3Comments