mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
LibJS: Assert that there's no exception on entry in Interpreter::call()
This commit is contained in:
parent
19b329ee96
commit
c5127389ca
1 changed files with 2 additions and 0 deletions
|
@ -247,6 +247,8 @@ void Interpreter::gather_roots(Badge<Heap>, HashTable<Cell*>& roots)
|
||||||
|
|
||||||
Value Interpreter::call(Function& function, Value this_value, Optional<MarkedValueList> arguments)
|
Value Interpreter::call(Function& function, Value this_value, Optional<MarkedValueList> arguments)
|
||||||
{
|
{
|
||||||
|
ASSERT(!exception());
|
||||||
|
|
||||||
auto& call_frame = push_call_frame();
|
auto& call_frame = push_call_frame();
|
||||||
call_frame.function_name = function.name();
|
call_frame.function_name = function.name();
|
||||||
call_frame.this_value = function.bound_this().value_or(this_value);
|
call_frame.this_value = function.bound_this().value_or(this_value);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue