From 5242342aff962af2224ac3d07773e7d8b0ea344a Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 17 May 2016 14:57:16 +0200 Subject: [PATCH] Stop re-rooting CallSetup::exception_compartment. --- components/script/dom/bindings/callback.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/script/dom/bindings/callback.rs b/components/script/dom/bindings/callback.rs index 60da145dd42..e5168e57768 100644 --- a/components/script/dom/bindings/callback.rs +++ b/components/script/dom/bindings/callback.rs @@ -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); } }