mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
script: Refer to DOM interfaces with generic types in generated bindings. (#35457)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
14db055d46
commit
1192ae32b0
20 changed files with 627 additions and 167 deletions
|
@ -1069,14 +1069,15 @@ pub(crate) fn handle_get_property(
|
|||
property.handle_mut(),
|
||||
)
|
||||
} {
|
||||
Ok(_) => match unsafe {
|
||||
jsval_to_webdriver(*cx, &node.reflector().global(), property.handle())
|
||||
} {
|
||||
Ok(property) => property,
|
||||
Err(_) => WebDriverJSValue::Undefined,
|
||||
Ok(_) => {
|
||||
match unsafe { jsval_to_webdriver(*cx, &node.global(), property.handle()) }
|
||||
{
|
||||
Ok(property) => property,
|
||||
Err(_) => WebDriverJSValue::Undefined,
|
||||
}
|
||||
},
|
||||
Err(error) => {
|
||||
throw_dom_exception(cx, &node.reflector().global(), error);
|
||||
throw_dom_exception(cx, &node.global(), error);
|
||||
WebDriverJSValue::Undefined
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue