Skip to content

Commit

Permalink
Remove Request handling from CallSetup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger authored and zakorgy committed May 26, 2016
1 parent 2b18fa8 commit 742e3d8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions components/script/dom/bindings/callback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use js::jsapi::JSAutoCompartment;
use js::jsapi::{Heap, MutableHandleObject, RootedObject, RootedValue};
use js::jsapi::{IsCallable, JSContext, JSObject, JS_WrapObject};
use js::jsapi::{JSCompartment, JS_EnterCompartment, JS_LeaveCompartment};
use js::jsapi::{JS_BeginRequest, JS_EndRequest};
use js::jsapi::{JS_GetProperty, JS_IsExceptionPending, JS_ReportPendingException};
use js::jsapi::{JS_RestoreFrameChain, JS_SaveFrameChain};
use js::jsval::{JSVal, UndefinedValue};
Expand Down Expand Up @@ -168,9 +167,6 @@ impl CallSetup {
pub fn new<T: CallbackContainer>(callback: &T, handling: ExceptionHandling) -> CallSetup {
let global = global_root_from_object(callback.callback());
let cx = global.r().get_cx();
unsafe {
JS_BeginRequest(cx);
}

let exception_compartment = unsafe {
GetGlobalForObjectCrossCompartment(callback.callback())
Expand Down Expand Up @@ -211,8 +207,5 @@ impl Drop for CallSetup {
}
}
}
unsafe {
JS_EndRequest(self.cx);
}
}
}

0 comments on commit 742e3d8

Please sign in to comment.