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-10-05 09:53:19 -07:00
2018-10-08 10:01:53 -07:00
2018-10-05 09:53:19 -07:00
2018-10-08 10:01:53 -07:00
2018-10-05 09:53:19 -07:00
2018-10-05 09:53:19 -07:00
2018-10-05 09:53:19 -07:00
2018-10-05 09:53:19 -07:00
2018-10-05 09:53:19 -07:00
2018-09-26 08:26:00 -07:00
2018-10-05 09:53:19 -07:00
2018-09-26 08:26:00 -07:00