mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
Use specific assertion for DOM binding refcounted
This commit is contained in:
parent
1c31370a08
commit
9ee27d62ae
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ impl TrustedPromise {
|
|||
LIVE_REFERENCES.with(|ref r| {
|
||||
let r = r.borrow();
|
||||
let live_references = r.as_ref().unwrap();
|
||||
assert!(self.owner_thread == (&*live_references) as *const _ as *const libc::c_void);
|
||||
assert_eq!(self.owner_thread, (&*live_references) as *const _ as *const libc::c_void);
|
||||
// Borrow-check error requires the redundant `let promise = ...; promise` here.
|
||||
let promise = match live_references.promise_table.borrow_mut().entry(self.dom_object) {
|
||||
Occupied(mut entry) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue