mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
LibJS: Make Function and CallFrame aware of their function name
This commit is contained in:
parent
4eceea7c62
commit
eece424694
11 changed files with 39 additions and 22 deletions
|
@ -205,6 +205,7 @@ void Interpreter::gather_roots(Badge<Heap>, HashTable<Cell*>& roots)
|
|||
Value Interpreter::call(Function* function, Value this_value, const Vector<Value>& arguments)
|
||||
{
|
||||
auto& call_frame = push_call_frame();
|
||||
call_frame.function_name = function->name();
|
||||
call_frame.this_value = this_value;
|
||||
call_frame.arguments = arguments;
|
||||
auto result = function->call(*this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue