diff options
author | Christopher Hotchkiss <christopher.hotchkiss@gmail.com> | 2015-07-24 20:23:15 -0400 |
---|---|---|
committer | Christopher Hotchkiss <christopher.hotchkiss@gmail.com> | 2015-07-24 20:23:15 -0400 |
commit | 469453787f8754a2e45360b6f39eb69bb15542c0 (patch) | |
tree | 705329fe565a757bf920bef75969960e11d9d179 /components/script/webdriver_handlers.rs | |
parent | ed1b6a3513e7546b580693f554a081bc0c7c478a (diff) | |
download | servo-469453787f8754a2e45360b6f39eb69bb15542c0.tar.gz servo-469453787f8754a2e45360b6f39eb69bb15542c0.zip |
Added support for int32 to webdriver.
Diffstat (limited to 'components/script/webdriver_handlers.rs')
-rw-r--r-- | components/script/webdriver_handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/webdriver_handlers.rs b/components/script/webdriver_handlers.rs index e3b50cb2aaf..910aadda16d 100644 --- a/components/script/webdriver_handlers.rs +++ b/components/script/webdriver_handlers.rs @@ -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 |