fixes dereferencing on an immutable reference (#31864)

This commit is contained in:
Aarya Khandelwal 2024-03-26 14:07:44 +05:30 committed by GitHub
parent 585e0d69cd
commit f7669b5238
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 76 additions and 77 deletions

View file

@ -512,7 +512,7 @@ impl EventTarget {
// Step 3.8 TODO: settings objects not implemented
let window = document.window();
let _ac = enter_realm(&*window);
let _ac = enter_realm(window);
// Step 3.9
@ -560,7 +560,7 @@ impl EventTarget {
if handler.get().is_null() {
// Step 3.7
unsafe {
let ar = enter_realm(&*self);
let ar = enter_realm(self);
// FIXME(#13152): dispatch error event.
report_pending_exception(*cx, false, InRealm::Entered(&ar));
}