mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make debug logging for tracing JS objects more informative.
This commit is contained in:
parent
835f443865
commit
293d465c59
6 changed files with 22 additions and 5 deletions
|
@ -115,6 +115,7 @@ thread_local!(static SCRIPT_THREAD_ROOT: RefCell<Option<*const ScriptThread>> =
|
|||
pub unsafe fn trace_thread(tr: *mut JSTracer) {
|
||||
SCRIPT_THREAD_ROOT.with(|root| {
|
||||
if let Some(script_thread) = *root.borrow() {
|
||||
debug!("tracing fields of ScriptThread");
|
||||
(*script_thread).trace(tr);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue