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

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

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