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

import sodium only if needed #243

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

Conversation

gutjuri
Copy link

@gutjuri gutjuri commented Feb 21, 2023

I face a problem that node.js crashes if libsodium is imported (Uncaught RangeError: WebAssembly.Instance(): Out of memory: wasm memory)

In order to be able to run jiff anyway, I changed the code such that libsodium is only imported if it is actually used.

Tested on node.js, not in the browser.

@gutjuri
Copy link
Author

gutjuri commented Mar 2, 2023

I'm linking an issue describing the error sodium gives: jedisct1/libsodium.js#301

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant