1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:28:11 +00:00

LibJS: Replace two more uses of unwind(ScopeType::None) with stop_unwind()

Same thing, but a lot more clear.
This commit is contained in:
Linus Groh 2021-04-13 00:32:32 +02:00 committed by Andreas Kling
parent f52c3cabcf
commit e8cbcc2fbf

View file

@ -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);