diff options
Diffstat (limited to 'components/script/dom/bindings/callback.rs')
-rw-r--r-- | components/script/dom/bindings/callback.rs | 3 |
1 files changed, 1 insertions, 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); } } |