mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
AK: Add NOTE about VERIFY in Function::clear
This commit is contained in:
@@ -189,6 +189,7 @@ private:
|
||||
void clear(bool may_defer = true)
|
||||
{
|
||||
bool called_from_inside_function = m_call_nesting_level > 0;
|
||||
// NOTE: This VERIFY could fail because a Function is destroyed from within itself.
|
||||
VERIFY(may_defer || !called_from_inside_function);
|
||||
if (called_from_inside_function && may_defer) {
|
||||
m_deferred_clear = true;
|
||||
|
||||
Reference in New Issue
Block a user