Skip to content

Assertion failed: (status == napi_ok), function fromBigInt, file ../src/bigint-buffer.c, line 132. #22

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

Open
olalonde opened this issue Jan 25, 2020 · 5 comments

Comments

@olalonde
Copy link

Getting this error on Node 12.8.1 macos:

Assertion failed: (status == napi_ok), function fromBigInt, file ../src/bigint-buffer.c, line 132.
@smarques
Copy link

Same here

@leofisG
Copy link

leofisG commented Nov 11, 2021

+1

1 similar comment
@ZhoufangErqiangu
Copy link

+1

@ishanjain1502
Copy link

ishanjain1502 commented Jan 18, 2025

+1 in windows too, with node version 20.11.1

@ishanjain1502
Copy link

ishanjain1502 commented Jan 18, 2025

Hey folks,
I tried using it with bigInt alongside where it failed, and it worked for me. the value of integrer passed in was bigger then what js can hold.

What I was trying to do?

was passing, a large integer in toBufferBE.
fixed it by passing the integer by changing its type to BigInt

let me know if anybody need any help with it 🫡

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

No branches or pull requests

5 participants