|
@@ -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 };
|