mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 21:12:08 +02:00
LibJS: Move [[HomeObject]] to ECMAScriptFunctionObject
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 03:28:09 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/136451c3aff Pull-request: https://github.com/SerenityOS/serenity/pull/10203 Reviewed-by: https://github.com/IdanHo ✅ Reviewed-by: https://github.com/davidot
@@ -55,6 +55,9 @@ public:
|
||||
|
||||
ThisMode this_mode() const { return m_this_mode; }
|
||||
|
||||
Object* home_object() const { return m_home_object; }
|
||||
void set_home_object(Object* home_object) { m_home_object = home_object; }
|
||||
|
||||
protected:
|
||||
virtual bool is_strict_mode() const final { return m_strict; }
|
||||
|
||||
@@ -73,6 +76,7 @@ private:
|
||||
Realm* m_realm { nullptr }; // [[Realm]]
|
||||
ThisMode m_this_mode { ThisMode::Global }; // [[ThisMode]]
|
||||
bool m_strict { false }; // [[Strict]]
|
||||
Object* m_home_object { nullptr }; // [[HomeObject]]
|
||||
bool m_is_class_constructor { false }; // [[IsClassConstructor]]
|
||||
|
||||
FlyString m_name;
|
||||
|
||||
Reference in New Issue
Block a user