1
Fork 0
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:
Andreas Kling 2020-03-12 20:11:35 +01:00
parent d1d136b4e5
commit 1448f4384d
4 changed files with 49 additions and 12 deletions

View 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"; }
};
}