From 834202aeb9a47c544ab4e61deb813de50bc03946 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 10 Jan 2023 06:28:20 -0500 Subject: LibWeb: Move setting of Web object prototypes to initialize() This needs to happen before prototype/constructor intitialization can be made lazy. Otherwise, GC could run during the C++ constructor and try to collect the object currently being created. --- Userland/Libraries/LibWeb/SVG/SVGPolylineElement.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Userland/Libraries/LibWeb/SVG/SVGPolylineElement.h') diff --git a/Userland/Libraries/LibWeb/SVG/SVGPolylineElement.h b/Userland/Libraries/LibWeb/SVG/SVGPolylineElement.h index 77015550cb..8ad2a9da82 100644 --- a/Userland/Libraries/LibWeb/SVG/SVGPolylineElement.h +++ b/Userland/Libraries/LibWeb/SVG/SVGPolylineElement.h @@ -23,6 +23,8 @@ public: private: SVGPolylineElement(DOM::Document&, DOM::QualifiedName); + virtual void initialize(JS::Realm&) override; + Optional m_path; Vector m_points; -- cgit v1.2.3