Replace borrow with borrow_for_gc_trace in JSTraceable::trace (Issue #4778).

This commit is contained in:
Avi Weinstock 2015-03-03 09:06:45 -05:00
parent 315a2349e8
commit bcc27d9bd0

View file

@ -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)
}
} }
} }