mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +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
|
@ -58,6 +58,7 @@ struct ScopeFrame {
|
|||
};
|
||||
|
||||
struct CallFrame {
|
||||
FlyString function_name;
|
||||
Value this_value;
|
||||
Vector<Value> arguments;
|
||||
};
|
||||
|
@ -106,7 +107,7 @@ public:
|
|||
|
||||
CallFrame& push_call_frame()
|
||||
{
|
||||
m_call_stack.append({ js_undefined(), {} });
|
||||
m_call_stack.append({ {}, js_undefined(), {} });
|
||||
return m_call_stack.last();
|
||||
}
|
||||
void pop_call_frame() { m_call_stack.take_last(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue