mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 18:37:58 +03: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
Notes:
sideshowbarker
2024-07-18 20:25:33 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/45133d8ada8 Pull-request: https://github.com/SerenityOS/serenity/pull/6284
@ -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…
Reference in New Issue
Block a user