mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Added support for int32 to webdriver.
This commit is contained in:
parent
ed1b6a3513
commit
469453787f
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ pub fn jsval_to_webdriver(cx: *mut JSContext, val: HandleValue) -> WebDriverJSRe
|
|||
Ok(WebDriverJSValue::Undefined)
|
||||
} else if val.get().is_boolean() {
|
||||
Ok(WebDriverJSValue::Boolean(val.get().to_boolean()))
|
||||
} else if val.get().is_double() {
|
||||
} else if val.get().is_double() || val.get().is_int32() {
|
||||
Ok(WebDriverJSValue::Number(FromJSValConvertible::from_jsval(cx, val, ()).unwrap()))
|
||||
} else if val.get().is_string() {
|
||||
//FIXME: use jsstring_to_str when jsval grows to_jsstring
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue