mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
deref on an immutable reference (#31899)
This commit is contained in:
parent
072b892706
commit
eccb60e548
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue