mirror of
https://github.com/servo/servo.git
synced 2025-07-03 13:33:39 +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| {
|
LIVE_REFERENCES.with(|ref r| {
|
||||||
let r = r.borrow();
|
let r = r.borrow();
|
||||||
let live_references = r.as_ref().unwrap();
|
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.
|
// Borrow-check error requires the redundant `let promise = ...; promise` here.
|
||||||
let promise = match live_references.promise_table.borrow_mut().entry(self.dom_object) {
|
let promise = match live_references.promise_table.borrow_mut().entry(self.dom_object) {
|
||||||
Occupied(mut entry) => {
|
Occupied(mut entry) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue