summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime')
-rw-r--r--Userland/Libraries/LibJS/Runtime/VM.h6
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())