mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
LibJS: Add EnvironmentRecord::global_object()
Our environment records are currently weird in that they inherit from Object, but don't have a connection to the global object. I'd like to remove this inheritance, and the first step is giving them their own pointer to the global object.
This commit is contained in:
parent
9d49a5478a
commit
f1e1d9dd74
3 changed files with 15 additions and 0 deletions
|
@ -108,6 +108,7 @@ public:
|
|||
virtual bool is_global_object() const { return false; }
|
||||
virtual bool is_proxy_object() const { return false; }
|
||||
virtual bool is_native_function() const { return false; }
|
||||
virtual bool is_environment_record() const { return false; }
|
||||
virtual bool is_global_environment_record() const { return false; }
|
||||
virtual bool is_declarative_environment_record() const { return false; }
|
||||
virtual bool is_function_environment_record() const { return false; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue