Alex Crichton 105a6bc853 js_sys: Use a thread local to cache global()
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.
2018-10-10 16:01:32 -07:00
..
2018-09-26 08:26:00 -07:00
2018-10-05 09:53:19 -07:00
2018-08-13 14:27:10 -07:00
2018-09-21 10:08:11 +02:00

js-sys

API documentation

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.