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

Commits on Oct 11, 2023

  1. Fix BigInt support

    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.
    arp242 committed Oct 11, 2023
    Configuration menu
    Copy the full SHA
    d4a7bed View commit details
    Browse the repository at this point in the history