impl OptionFromWasmAbi and OptionIntoWasmAbi for ImportEnum, enable RTCRtpTransceiver.webidl, add add rtc_rtp_transceiver_direction test

This commit is contained in:
alexlapa
2019-03-14 12:15:02 -06:00
parent e075d0492d
commit 9178231b60
5 changed files with 104 additions and 0 deletions

View File

@ -844,6 +844,18 @@ impl ToTokens for ast::ImportEnum {
}
}
#[allow(clippy::all)]
impl ::wasm_bindgen::convert::OptionIntoWasmAbi for #name {
#[inline]
fn none() -> Self::Abi { Object::none() }
}
#[allow(clippy::all)]
impl ::wasm_bindgen::convert::OptionFromWasmAbi for #name {
#[inline]
fn is_none(abi: &Self::Abi) -> bool { Object::is_none(abi) }
}
#[allow(clippy::all)]
impl From<#name> for ::wasm_bindgen::JsValue {
fn from(obj: #name) -> ::wasm_bindgen::JsValue {