mirror of
https://github.com/servo/servo.git
synced 2025-06-17 04:44:28 +00:00
Replace borrow with borrow_for_gc_trace in JSTraceable::trace (Issue #4778).
This commit is contained in:
parent
315a2349e8
commit
bcc27d9bd0
1 changed files with 3 additions and 1 deletions
|
@ -94,7 +94,9 @@ impl<T> DOMRefCell<T> {
|
||||||
|
|
||||||
impl<T: JSTraceable> JSTraceable for DOMRefCell<T> {
|
impl<T: JSTraceable> JSTraceable for DOMRefCell<T> {
|
||||||
fn trace(&self, trc: *mut JSTracer) {
|
fn trace(&self, trc: *mut JSTracer) {
|
||||||
(*self).borrow().trace(trc)
|
unsafe {
|
||||||
|
(*self).borrow_for_gc_trace().trace(trc)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue