aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/webdriver_handlers.rs
diff options
context:
space:
mode:
authorSudarsan <sudar.theone@gmail.com>2020-08-28 20:54:18 +0800
committerSudarsan <sudar.theone@gmail.com>2020-08-28 20:54:18 +0800
commitf8c9ee4eff1ae7a72037e16f2aa97ad6bb69da4e (patch)
treee6c9d62ef7eab4920efe4c9e7bd5d3e603ef90e1 /components/script/webdriver_handlers.rs
parent9e6da58d7793a4576fef38446457e1073a19cd5e (diff)
downloadservo-f8c9ee4eff1ae7a72037e16f2aa97ad6bb69da4e.tar.gz
servo-f8c9ee4eff1ae7a72037e16f2aa97ad6bb69da4e.zip
Update mozjs to 0.14.1
This update pulls in improvements on mozjs that now removes the need to pass pointers to CompileOptionsWraper::new(), allows NewProxyObject to now accept a Singleton bool and JSClass and removes an unsafe Handle::new usage.
Diffstat (limited to 'components/script/webdriver_handlers.rs')
-rw-r--r--components/script/webdriver_handlers.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/webdriver_handlers.rs b/components/script/webdriver_handlers.rs
index 1d36337f5eb..5129d1c9569 100644
--- a/components/script/webdriver_handlers.rs
+++ b/components/script/webdriver_handlers.rs
@@ -48,7 +48,7 @@ use ipc_channel::ipc::{self, IpcSender};
use js::jsapi::{HandleValueArray, JSAutoRealm, JSContext, JSType, JS_IsExceptionPending};
use js::jsval::UndefinedValue;
use js::rust::wrappers::{JS_CallFunctionName, JS_GetProperty, JS_HasOwnProperty, JS_TypeOfValue};
-use js::rust::{Handle, HandleObject, HandleValue};
+use js::rust::{HandleObject, HandleValue};
use msg::constellation_msg::BrowsingContextId;
use msg::constellation_msg::PipelineId;
use net_traits::CookieSource::{NonHTTP, HTTP};
@@ -256,7 +256,7 @@ pub unsafe fn jsval_to_webdriver(
&mut HandleValueArray::new(),
value.handle_mut(),
) {
- jsval_to_webdriver(cx, global_scope, Handle::new(&value))
+ jsval_to_webdriver(cx, global_scope, value.handle())
} else {
throw_dom_exception(SafeJSContext::from_ptr(cx), global_scope, Error::JSFailed);
Err(WebDriverJSError::JSError)