mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:17:46 +00:00
LibJS: Move [[HomeObject]] to ECMAScriptFunctionObject
This commit is contained in:
parent
06726d41ac
commit
136451c3af
6 changed files with 14 additions and 13 deletions
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibJS/Runtime/DeclarativeEnvironment.h>
|
||||
#include <LibJS/Runtime/ECMAScriptFunctionObject.h>
|
||||
|
||||
namespace JS {
|
||||
|
||||
|
@ -35,9 +36,9 @@ public:
|
|||
void set_this_binding_status(ThisBindingStatus status) { m_this_binding_status = status; }
|
||||
|
||||
// [[FunctionObject]]
|
||||
FunctionObject& function_object() { return *m_function_object; }
|
||||
FunctionObject const& function_object() const { return *m_function_object; }
|
||||
void set_function_object(FunctionObject& function) { m_function_object = &function; }
|
||||
ECMAScriptFunctionObject& function_object() { return *m_function_object; }
|
||||
ECMAScriptFunctionObject const& function_object() const { return *m_function_object; }
|
||||
void set_function_object(ECMAScriptFunctionObject& function) { m_function_object = &function; }
|
||||
|
||||
// [[NewTarget]]
|
||||
Value new_target() const { return m_new_target; }
|
||||
|
@ -56,7 +57,7 @@ private:
|
|||
|
||||
Value m_this_value;
|
||||
ThisBindingStatus m_this_binding_status { ThisBindingStatus::Uninitialized };
|
||||
FunctionObject* m_function_object { nullptr };
|
||||
ECMAScriptFunctionObject* m_function_object { nullptr };
|
||||
Value m_new_target;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue