1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:17:36 +00:00

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
parent 093331df06
commit 8062fc711c
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 };