mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-20 00:27:26 +03:00
36b854b69c
This commit adds further support for the `Global` attribute to not only emit structural accessors but also emit functions that don't take `&self`. All methods on a `[Global]` interface will not require `&self` and will call functions and/or access properties on the global scope. This should enable things like: Window::location() // returns `Location` Window::fetch(...) // invokes the `fetch` function Closes #659
14 lines
236 B
Rust
14 lines
236 B
Rust
extern crate js_sys;
|
|
extern crate wasm_bindgen;
|
|
extern crate wasm_bindgen_test;
|
|
|
|
pub mod array;
|
|
pub mod array_buffer;
|
|
pub mod consts;
|
|
pub mod enums;
|
|
pub mod namespace;
|
|
pub mod simple;
|
|
pub mod throws;
|
|
pub mod dictionary;
|
|
pub mod global;
|