mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove Request handling from CallSetup.
This commit is contained in:
parent
fe4061e0ec
commit
a2bb595974
1 changed files with 0 additions and 7 deletions
|
@ -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};
|
||||
|
@ -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())
|
||||
|
@ -211,8 +207,5 @@ impl Drop for CallSetup {
|
|||
}
|
||||
}
|
||||
}
|
||||
unsafe {
|
||||
JS_EndRequest(self.cx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue