Git Product home page Git Product logo

Comments (5)

tynes avatar tynes commented on July 3, 2024 1

There isn't a way to babelify BigInts. The newer versions of browsers do support them, to build with babel/webpack you will need to tell babel to exclude lib/node/bn.js

from bcrypto.

pinheadmz avatar pinheadmz commented on July 3, 2024

@jafri what produced this error? The regular installation/build of bcrypto for bcoin or handshake? Or was it a react build?

These are bigInt's. See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt

from bcrypto.

jafri avatar jafri commented on July 3, 2024

@pinheadmz just a regular installation and its just a warning, works fine.

from bcrypto.

chjj avatar chjj commented on July 3, 2024

@jafri, the v8 bigint backend isn't meant to be babelified for this reason. The package browser field is meant to enforce this and fall back to the vanilla JS version:

from bcrypto.

bradicalone avatar bradicalone commented on July 3, 2024

bcrypto/lib/node/bn.js: Identifier directly after number (46:17)

44 | */
45 |

46 | const U8_MAX = (1n << 8n) - 1n;
| ^
47 | const U16_MAX = (1n << 16n) - 1n;
48 | const U32_MAX = (1n << 32n) - 1n;
49 | const U64_MAX = (1n << 64n) - 1n;

from bcrypto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.