From e8cbcc2fbf0375d5b47acd98f2a0367f0807972d Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Tue, 13 Apr 2021 00:32:32 +0200 Subject: [PATCH] LibJS: Replace two more uses of unwind(ScopeType::None) with stop_unwind() Same thing, but a lot more clear. --- Userland/Libraries/LibJS/Interpreter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibJS/Interpreter.cpp b/Userland/Libraries/LibJS/Interpreter.cpp index cbe28ce249..61059981cd 100644 --- a/Userland/Libraries/LibJS/Interpreter.cpp +++ b/Userland/Libraries/LibJS/Interpreter.cpp @@ -142,7 +142,7 @@ void Interpreter::exit_scope(const ScopeNode& scope_node) // If we unwind all the way, just reset m_unwind_until so that future "return" doesn't break. if (m_scope_stack.is_empty()) - vm().unwind(ScopeType::None); + vm().stop_unwind(); } void Interpreter::push_scope(ScopeFrame frame) @@ -176,7 +176,7 @@ Value Interpreter::execute_statement(GlobalObject& global_object, const Statemen } if (vm().unwind_until() == scope_type) - vm().unwind(ScopeType::None); + vm().stop_unwind(); exit_scope(block);