Open vjau opened 1 year ago
Still happening with bun 0.7.0. After some investigation, it's not related to FFI but to n-api.
Still happening with bun 0.7.3
i havent checked but i suspect we dont handle returning an napi_value here, but expecting exports to be mutated.
Still happening on bun 1.0.14. Just encountered while trying to run an app that relies on @fastify/secure-session
bump here too
same here
+1
+1
What version of Bun is running?
0.6.14
What platform is your computer?
Linux 5.4.0-153-generic x86_64 x86_64 (Ubuntu 20.04)
What steps can reproduce the bug?
sodium-native is a thin wrapper around libsodium I don't know if the bug is crypto or ffi related.
sodium-native is exporting constants that are not bound when imported in bun code. This lib is used by @fastify/secure-session plugin
Output with bun
Output with node
What is the expected behavior?
sodium 24 sodium 32
What do you see instead?
sodium undefined sodium undefined
Additional information
No response