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:
parent
4ee965f916
commit
45133d8ada
1 changed files with 5 additions and 1 deletions
|
@ -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())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue