LibJS: Add arguments.callee to our hack arguments object

arguments.callee refers to the currently executing function.
This commit is contained in:
Andreas Kling 2021-03-14 16:41:00 +01:00
commit 8062fc711c
Notes: sideshowbarker 2024-07-18 21:19:52 +09:00
3 changed files with 5 additions and 0 deletions

View file

@ -58,6 +58,7 @@ struct ScopeFrame {
struct CallFrame {
const ASTNode* current_node;
FlyString function_name;
Value callee;
Value this_value;
Vector<Value> arguments;
Array* arguments_object { nullptr };