mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
LibJS: Move GlobalObject to its own Object subclass
This is mostly for tidiness at the moment.
This commit is contained in:
parent
d1d136b4e5
commit
1448f4384d
4 changed files with 49 additions and 12 deletions
16
Libraries/LibJS/GlobalObject.h
Normal file
16
Libraries/LibJS/GlobalObject.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibJS/Object.h>
|
||||
|
||||
namespace JS {
|
||||
|
||||
class GlobalObject final : public Object {
|
||||
public:
|
||||
explicit GlobalObject(Heap&);
|
||||
virtual ~GlobalObject() override;
|
||||
|
||||
private:
|
||||
virtual const char* class_name() const override { return "GlobalObject"; }
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue