1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:37:47 +00:00

LibJS: Turn initialize_global_object() into a regular initialize()

There's nothing special about global object initialization anymore, this
can just work the same way as for any other object now.
This commit is contained in:
Linus Groh 2022-08-28 14:42:50 +01:00
parent 867ad03995
commit cfa5885855
17 changed files with 36 additions and 36 deletions

View file

@ -21,6 +21,7 @@ class ConsoleGlobalObject final : public JS::GlobalObject {
public:
ConsoleGlobalObject(JS::Realm&, Web::Bindings::WindowObject&);
virtual void initialize(JS::Realm&) override;
virtual ~ConsoleGlobalObject() override = default;
virtual JS::ThrowCompletionOr<Object*> internal_get_prototype_of() const override;
@ -35,8 +36,6 @@ public:
virtual JS::ThrowCompletionOr<bool> internal_delete(JS::PropertyKey const& name) override;
virtual JS::ThrowCompletionOr<JS::MarkedVector<JS::Value>> internal_own_property_keys() const override;
virtual void initialize_global_object(JS::Realm&) override;
private:
virtual void visit_edges(Visitor&) override;