diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-05-13 15:34:38 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-05-13 15:34:38 +0200 |
commit | 735480c18413db18bc77f4ae828715a8c155b017 (patch) | |
tree | effe300a442368035e214e092af6c7e8def36172 /components/script/dom/browsingcontext.rs | |
parent | 221db56b08e01157c97f5adba43799eeaee32f64 (diff) | |
download | servo-735480c18413db18bc77f4ae828715a8c155b017.tar.gz servo-735480c18413db18bc77f4ae828715a8c155b017.zip |
Stop using JSAutoRequest.
Diffstat (limited to 'components/script/dom/browsingcontext.rs')
-rw-r--r-- | components/script/dom/browsingcontext.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/browsingcontext.rs b/components/script/dom/browsingcontext.rs index 0576c165cc0..0371950300c 100644 --- a/components/script/dom/browsingcontext.rs +++ b/components/script/dom/browsingcontext.rs @@ -17,7 +17,7 @@ use dom::window::Window; use js::JSCLASS_IS_GLOBAL; use js::glue::{CreateWrapperProxyHandler, ProxyTraps, NewWindowProxy}; use js::glue::{GetProxyPrivate, SetProxyExtra, GetProxyExtra}; -use js::jsapi::{Handle, HandleId, HandleObject, HandleValue, JSAutoCompartment, JSAutoRequest}; +use js::jsapi::{Handle, HandleId, HandleObject, HandleValue, JSAutoCompartment}; use js::jsapi::{JSContext, JSPROP_READONLY, JSErrNum, JSObject, PropertyDescriptor, JS_DefinePropertyById}; use js::jsapi::{JS_ForwardGetPropertyTo, JS_ForwardSetPropertyTo, JS_GetClass, JSTracer, FreeOp}; use js::jsapi::{JS_GetOwnPropertyDescriptorById, JS_HasPropertyById, MutableHandle}; @@ -70,7 +70,6 @@ impl BrowsingContext { assert!(!handler.is_null()); let cx = window.get_cx(); - let _ar = JSAutoRequest::new(cx); let parent = window.reflector().get_jsobject(); assert!(!parent.get().is_null()); assert!(((*JS_GetClass(parent.get())).flags & JSCLASS_IS_GLOBAL) != 0); |