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

LibJS: Rename ExecutionContext::callee => function

This matches what ECMAScript calls it. Also make it a JS::Function*
instead of a generic Value, since it will always either be a function
object or null.
This commit is contained in:
Andreas Kling 2021-06-24 19:25:38 +02:00
parent c2ad599783
commit 6215a9c2cb
2 changed files with 5 additions and 5 deletions

View file

@ -45,7 +45,7 @@ struct ScopeFrame {
struct ExecutionContext {
const ASTNode* current_node { nullptr };
FlyString function_name;
Value callee;
Function* function { nullptr };
Value this_value;
Vector<Value> arguments;
Array* arguments_object { nullptr };