mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-25 22:41:04 +00:00
Previously the "container attribute" were set to the attributes of the mixin itself, but we want the container attributes to be that of the type which includes the mixin (like `Window`) as those attributes contain information about whether or not bindings are `structural`. The end result with this is that the `structural` tag is now used for properties on `Window`, correctly generating setters/getters. Closes #904
9 lines
183 B
Rust
9 lines
183 B
Rust
use wasm_bindgen_test::*;
|
|
use web_sys;
|
|
|
|
#[wasm_bindgen_test]
|
|
fn accessor_works() {
|
|
let window = web_sys::window().unwrap();
|
|
assert!(window.indexed_db().unwrap().is_some());
|
|
}
|