Преглед на файлове

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

Same thing, but a lot more clear.
Linus Groh преди 4 години
родител
ревизия
e8cbcc2fbf
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      Userland/Libraries/LibJS/Interpreter.cpp

+ 2 - 2
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 we unwind all the way, just reset m_unwind_until so that future "return" doesn't break.
     if (m_scope_stack.is_empty())
     if (m_scope_stack.is_empty())
-        vm().unwind(ScopeType::None);
+        vm().stop_unwind();
 }
 }
 
 
 void Interpreter::push_scope(ScopeFrame frame)
 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)
     if (vm().unwind_until() == scope_type)
-        vm().unwind(ScopeType::None);
+        vm().stop_unwind();
 
 
     exit_scope(block);
     exit_scope(block);