mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Clean up debug options
This commit is contained in:
parent
3e3bd9c728
commit
dc192172ad
10 changed files with 172 additions and 308 deletions
|
@ -239,7 +239,7 @@ pub unsafe fn jsstring_to_str(cx: *mut JSContext, s: *mut JSString) -> DOMString
|
|||
please comment on https://github.com/servo/servo/issues/6564"
|
||||
};
|
||||
}
|
||||
if opts::get().replace_surrogates {
|
||||
if opts::get().debug.replace_surrogates {
|
||||
error!(message!());
|
||||
s.push('\u{FFFD}');
|
||||
} else {
|
||||
|
|
|
@ -483,7 +483,7 @@ unsafe fn new_rt_and_cx_with_parent(
|
|||
JS_SetGCCallback(cx, Some(debug_gc_callback), ptr::null_mut());
|
||||
}
|
||||
|
||||
if opts::get().gc_profile {
|
||||
if opts::get().debug.gc_profile {
|
||||
SetGCSliceCallback(cx, Some(gc_slice_callback));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue