mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Use ToJSValConvertible to convert nullable enums to JSVal.
This commit is contained in:
parent
ccaa46e4a3
commit
a52cffebeb
3 changed files with 5 additions and 5 deletions
|
@ -74,6 +74,7 @@ impl TestBinding {
|
|||
pub fn SetDoubleAttributeNullable(&self, _: Option<f64>) {}
|
||||
pub fn GetStringAttributeNullable(&self) -> Option<DOMString> { Some(~"") }
|
||||
pub fn SetStringAttributeNullable(&self, _: Option<DOMString>) {}
|
||||
pub fn GetEnumAttributeNullable(&self) -> Option<TestEnum> { Some(_empty) }
|
||||
pub fn GetInterfaceAttributeNullable(&self) -> Option<JS<Blob>> { Some(Blob::new(&self.window)) }
|
||||
pub fn SetInterfaceAttributeNullable(&self, _: Option<JS<Blob>>) {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue