mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 18:20:51 +00:00
Fix WebIDL mixin attributes on Window
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
This commit is contained in:
parent
0ac84c231a
commit
230b8f61fd
8
crates/web-sys/tests/wasm/indexeddb.rs
Normal file
8
crates/web-sys/tests/wasm/indexeddb.rs
Normal file
@ -0,0 +1,8 @@
|
||||
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());
|
||||
}
|
@ -55,3 +55,4 @@ pub mod style_element;
|
||||
pub mod table_element;
|
||||
pub mod title_element;
|
||||
pub mod xpath_result;
|
||||
pub mod indexeddb;
|
||||
|
@ -568,7 +568,7 @@ impl<'src> FirstPassRecord<'src> {
|
||||
&member.type_,
|
||||
member.identifier.0,
|
||||
&member.attributes,
|
||||
mixin_data.definition_attributes,
|
||||
data.definition_attributes,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user