mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove the JSAutoCompartment from report_pending_exception.
It doesn't really belong there.
This commit is contained in:
parent
3b11c5ea2d
commit
5662f0d346
5 changed files with 11 additions and 10 deletions
|
@ -426,7 +426,8 @@ impl EventTarget {
|
|||
if !rv || handler.get().is_null() {
|
||||
// Step 1.8.2
|
||||
unsafe {
|
||||
report_pending_exception(cx, self.reflector().get_jsobject().get());
|
||||
let _ac = JSAutoCompartment::new(cx, self.reflector().get_jsobject().get());
|
||||
report_pending_exception(cx);
|
||||
}
|
||||
// Step 1.8.1 / 1.8.3
|
||||
return None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue