LibJS: Unset m_unwind_until_label in stop_unwind()

I don't see a reason to keep this intact, that might only surprise us
down the line...
This commit is contained in:
Linus Groh 2021-04-13 01:04:32 +02:00 committed by Andreas Kling
parent 4ee965f916
commit 45133d8ada
Notes: sideshowbarker 2024-07-18 20:25:33 +09:00

View File

@ -182,7 +182,11 @@ public:
m_unwind_until = type;
m_unwind_until_label = label;
}
void stop_unwind() { m_unwind_until = ScopeType::None; }
void stop_unwind()
{
m_unwind_until = ScopeType::None;
m_unwind_until_label = {};
}
bool should_unwind_until(ScopeType type, FlyString label = {}) const
{
if (m_unwind_until_label.is_null())