wasm-bindgen/crates
Alex Crichton 13cac2d0c4 Fix generated shims if APIs don't exist
This commit fixes instantiation of the wasm module even if some of the
improted APIs don't exist. This extends the functionality initially
added in #409 to attempt to gracefully allow importing values from the
environment which don't actually exist in all contexts. In addition to
nonexistent methods being handled now entire nonexistent types are now
also handled.

I suspect that eventually we'll add a CLI flag to `wasm-bindgen` to say
"I assert everything exists, don't check it" to trim out the extra JS
glue generated here. In the meantime though this'll pave the way for a
wasm-bindgen shim to be instantiated in both a web worker and the main
thread, while using DOM-like APIs only on the main thread.
2018-10-10 17:46:51 -07:00
..
backend Merge pull request #955 from alexcrichton/non-send 2018-10-10 17:41:49 -07:00
cli Bump to 0.2.25 2018-10-10 13:19:40 -07:00
cli-support Fix generated shims if APIs don't exist 2018-10-10 17:46:51 -07:00
futures Bump to 0.2.25 2018-10-10 13:19:40 -07:00
gc Bump to 0.2.25 2018-10-10 13:19:40 -07:00
js-sys Merge pull request #958 from alexcrichton/no-global-cache 2018-10-10 17:41:41 -07:00
macro Bump to 0.2.25 2018-10-10 13:19:40 -07:00
macro-support Bump to 0.2.25 2018-10-10 13:19:40 -07:00
shared Bump to 0.2.25 2018-10-10 13:19:40 -07:00
test Bump to 0.2.25 2018-10-10 13:19:40 -07:00
test-macro Bump to 0.2.25 2018-10-10 13:19:40 -07:00
typescript cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00
wasm-interpreter Bump to 0.2.25 2018-10-10 13:19:40 -07:00
web-sys Bump to 0.2.25 2018-10-10 13:19:40 -07:00
webidl Bump to 0.2.25 2018-10-10 13:19:40 -07:00
webidl-tests cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00