Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BigInt support #54

Open
wants to merge 1 commit into
base: latest
Choose a base branch
from
Open

Fix BigInt support #54

wants to merge 1 commit into from

Conversation

arp242
Copy link

@arp242 arp242 commented Oct 11, 2023

global.BigInt is never defined for me (Node v18.16), so it's never used.

Use typeof(BigInt) === 'function' instead; that's what e.g. this polyfill uses: https://github.com/peterolson/BigInteger.js/blob/master/BigInteger.js

Also always use BigInt, which seems easier to me, and applications can easily tell if something was given as an int or float.

global.BigInt is never defined for me (Node v18.16), so it's never used.

Use typeof(BigInt) === 'function' instead; that's what e.g. this
polyfill uses: https://github.com/peterolson/BigInteger.js/blob/master/BigInteger.js

Also always use BigInt, which seems easier to me, and applications can
easily tell if something was given as an int or float.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant