mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:27:34 +00:00
LibJS: Move Console ownership from GlobalObject to ConsoleObject
GlobalObject is now a regular object with no special properties :^)
This commit is contained in:
parent
78eca3ae64
commit
867ad03995
7 changed files with 53 additions and 31 deletions
|
@ -18,6 +18,8 @@ public:
|
|||
virtual void initialize(Realm&) override;
|
||||
virtual ~ConsoleObject() override = default;
|
||||
|
||||
Console& console() { return *m_console; }
|
||||
|
||||
private:
|
||||
JS_DECLARE_NATIVE_FUNCTION(log);
|
||||
JS_DECLARE_NATIVE_FUNCTION(debug);
|
||||
|
@ -35,6 +37,8 @@ private:
|
|||
JS_DECLARE_NATIVE_FUNCTION(time);
|
||||
JS_DECLARE_NATIVE_FUNCTION(time_log);
|
||||
JS_DECLARE_NATIVE_FUNCTION(time_end);
|
||||
|
||||
NonnullOwnPtr<Console> m_console;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue