mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-27 15:31:05 +00:00
When we add threads it's not actually valid to have a global cache as the index is only valid on one thread! Instead let's use a per-thread cache using `thread_local!` which compiles to basically the same code as before for single-threaded wasm.
js-sys
Raw bindings to JS global APIs for projects using wasm-bindgen
. This crate is
handwritten and intended to work in all JS environments like browsers and
Node.js.