diff options
author | Linus Groh <mail@linusgroh.de> | 2021-04-13 01:04:32 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-13 15:40:52 +0200 |
commit | 45133d8ada88cf3548f05d175da71e988dcd3ae3 (patch) | |
tree | 1a1fb4fb90300df43ea030cf65408bda55dba9e5 /Userland | |
parent | 4ee965f9166bbabccc92a503e14125103a6699f2 (diff) | |
download | serenity-45133d8ada88cf3548f05d175da71e988dcd3ae3.zip |
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...
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/VM.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/VM.h b/Userland/Libraries/LibJS/Runtime/VM.h index 0a870b9b5a..d0a928732b 100644 --- a/Userland/Libraries/LibJS/Runtime/VM.h +++ b/Userland/Libraries/LibJS/Runtime/VM.h @@ -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()) |