deref on an immutable reference (#31899)

This commit is contained in:
Rosemary Ajayi 2024-03-28 08:57:56 +00:00 committed by GitHub
parent 072b892706
commit eccb60e548
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -155,7 +155,7 @@ pub unsafe extern "C" fn get_prototype_if_ordinary(
/// Get the expando object, or null if there is none.
pub unsafe fn get_expando_object(obj: RawHandleObject, mut expando: MutableHandleObject) {
assert!(is_dom_proxy(obj.get()));
let ref mut val = UndefinedValue();
let val = &mut UndefinedValue();
GetProxyPrivate(obj.get(), val);
expando.set(if val.is_undefined() {
ptr::null_mut()