LibJS: Assert that there's no exception on entry in Interpreter::call()

This commit is contained in:
Andreas Kling 2020-08-14 17:30:34 +02:00
parent 19b329ee96
commit c5127389ca
Notes: sideshowbarker 2024-07-19 03:38:39 +09:00

View file

@ -247,6 +247,8 @@ void Interpreter::gather_roots(Badge<Heap>, HashTable<Cell*>& roots)
Value Interpreter::call(Function& function, Value this_value, Optional<MarkedValueList> arguments)
{
ASSERT(!exception());
auto& call_frame = push_call_frame();
call_frame.function_name = function.name();
call_frame.this_value = function.bound_this().value_or(this_value);