Skip to content

Commit

Permalink
Use JsValue for sequences.
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-uk1 committed Jan 9, 2019
1 parent 5807316 commit e91328c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/webidl/src/idl_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,10 @@ impl<'a> IdlType<'a> {
Some(option_ty(inner))
}
IdlType::FrozenArray(_idl_type) => None,
IdlType::Sequence(_idl_type) => js_sys("Array"),
IdlType::Sequence(_idl_type) => {
let path = vec![rust_ident("wasm_bindgen"), rust_ident("JsValue")];
anyref(leading_colon_path_ty(path))
},
IdlType::Promise(_idl_type) => js_sys("Promise"),
IdlType::Record(_idl_type_from, _idl_type_to) => None,
IdlType::Union(idl_types) => {
Expand Down

0 comments on commit e91328c

Please sign in to comment.