mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Make an assertion a release assert in nightly.
If this can happen legitimately, this will help fuzzers to catch it. Differential Revision: https://phabricator.services.mozilla.com/D59066
This commit is contained in:
parent
718a9b1f05
commit
d459e3453a
1 changed files with 4 additions and 1 deletions
|
@ -1719,7 +1719,10 @@ impl Drop for StrongRuleNode {
|
|||
return;
|
||||
}
|
||||
|
||||
debug_assert!(node.children.read().is_empty());
|
||||
if cfg!(debug_assertions) || crate::gecko_bindings::structs::GECKO_IS_NIGHTLY {
|
||||
assert!(node.children.read().is_empty());
|
||||
}
|
||||
|
||||
if node.parent.is_none() {
|
||||
debug!("Dropping root node!");
|
||||
// The free list should be null by this point
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue