aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/webdriver_handlers.rs
diff options
context:
space:
mode:
authorChristopher Hotchkiss <christopher.hotchkiss@gmail.com>2015-07-24 20:23:15 -0400
committerChristopher Hotchkiss <christopher.hotchkiss@gmail.com>2015-07-24 20:23:15 -0400
commit469453787f8754a2e45360b6f39eb69bb15542c0 (patch)
tree705329fe565a757bf920bef75969960e11d9d179 /components/script/webdriver_handlers.rs
parented1b6a3513e7546b580693f554a081bc0c7c478a (diff)
downloadservo-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.rs2
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