diff --git a/Libraries/LibJS/Interpreter.cpp b/Libraries/LibJS/Interpreter.cpp index 5c9836789b1..a795b5126bb 100644 --- a/Libraries/LibJS/Interpreter.cpp +++ b/Libraries/LibJS/Interpreter.cpp @@ -247,6 +247,8 @@ void Interpreter::gather_roots(Badge, HashTable& roots) Value Interpreter::call(Function& function, Value this_value, Optional 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);