mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Stop re-rooting CallSetup::exception_compartment.
This commit is contained in:
parent
e4db7b6e9c
commit
5242342aff
1 changed files with 1 additions and 2 deletions
|
@ -195,8 +195,7 @@ impl Drop for CallSetup {
|
|||
unsafe { JS_IsExceptionPending(self.cx) };
|
||||
if need_to_deal_with_exception {
|
||||
unsafe {
|
||||
let old_global = RootedObject::new(self.cx, self.exception_compartment.ptr);
|
||||
let _ac = JSAutoCompartment::new(self.cx, old_global.ptr);
|
||||
let _ac = JSAutoCompartment::new(self.cx, self.exception_compartment.ptr);
|
||||
JS_ReportPendingException(self.cx);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue