1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:47:35 +00:00

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

View file

@ -182,7 +182,11 @@ public:
m_unwind_until = type; m_unwind_until = type;
m_unwind_until_label = label; 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 bool should_unwind_until(ScopeType type, FlyString label = {}) const
{ {
if (m_unwind_until_label.is_null()) if (m_unwind_until_label.is_null())