wasm-bindgen/crates/wasm-interpreter
Alex Crichton 5a3cd893e0 Implement AsRef<JsValue> for Closure<T>
This commit adds an implementation of `AsRef<JsValue>` for the `Closure<T>`
type. Previously this was not possible because the `JsValue` didn't actually
exist until the closure was passed to JS, but the implementation has been
changed to ... something a bit more unconventional. The end result, however, is
that `Closure<T>` now always contains a `JsValue`.

The end result of this work is intended to be a precursor to binding callbacks
in `web-sys` as `JsValue` everywhere but still allowing usage with `Closure<T>`.
2018-09-06 14:46:59 -07:00
..
src Implement AsRef<JsValue> for Closure<T> 2018-09-06 14:46:59 -07:00
tests Remove dependency on wasmi 2018-08-20 15:14:56 -07:00
Cargo.toml Bump dependency on parity-wasm to 0.32.0 2018-08-28 10:12:56 -07:00