summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/OrdinaryFunctionObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/OrdinaryFunctionObject.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/OrdinaryFunctionObject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/OrdinaryFunctionObject.h b/Userland/Libraries/LibJS/Runtime/OrdinaryFunctionObject.h
index dfdf96cb42..5720c87845 100644
--- a/Userland/Libraries/LibJS/Runtime/OrdinaryFunctionObject.h
+++ b/Userland/Libraries/LibJS/Runtime/OrdinaryFunctionObject.h
@@ -37,6 +37,8 @@ public:
virtual EnvironmentRecord* environment() override { return m_environment; }
+ GlobalObject* realm() const override { return m_realm; }
+
protected:
virtual bool is_strict_mode() const final { return m_is_strict; }
@@ -55,6 +57,7 @@ private:
const Vector<FunctionNode::Parameter> m_parameters;
Optional<Bytecode::Executable> m_bytecode_executable;
EnvironmentRecord* m_environment { nullptr };
+ GlobalObject* m_realm { nullptr };
i32 m_function_length { 0 };
FunctionKind m_kind { FunctionKind::Regular };
bool m_is_strict { false };