aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/callback.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-05-17 14:57:16 +0200
committerMs2ger <Ms2ger@gmail.com>2016-05-17 16:32:05 +0200
commit5242342aff962af2224ac3d07773e7d8b0ea344a (patch)
tree44001a743359fc5025e2e9b864b6e7d7c751cdf0 /components/script/dom/bindings/callback.rs
parente4db7b6e9c23f356936527f0e0a5d195aee1a5d2 (diff)
downloadservo-5242342aff962af2224ac3d07773e7d8b0ea344a.tar.gz
servo-5242342aff962af2224ac3d07773e7d8b0ea344a.zip
Stop re-rooting CallSetup::exception_compartment.
Diffstat (limited to 'components/script/dom/bindings/callback.rs')
-rw-r--r--components/script/dom/bindings/callback.rs3
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);
}
}