mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-26 19:32:06 -05: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_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())
|
||||
|
|
Loading…
Add table
Reference in a new issue