diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/EventNames.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/EventNames.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/EventNames.cpp b/Userland/Libraries/LibWeb/HTML/EventNames.cpp index f0c0d2e58d..2824b90778 100644 --- a/Userland/Libraries/LibWeb/HTML/EventNames.cpp +++ b/Userland/Libraries/LibWeb/HTML/EventNames.cpp @@ -12,11 +12,10 @@ namespace Web::HTML::EventNames { ENUMERATE_HTML_EVENTS #undef __ENUMERATE_HTML_EVENT -[[gnu::constructor]] static void initialize() +ErrorOr<void> initialize_strings() { static bool s_initialized = false; - if (s_initialized) - return; + VERIFY(!s_initialized); #define __ENUMERATE_HTML_EVENT(name) \ name = #name; @@ -24,6 +23,7 @@ ENUMERATE_HTML_EVENTS #undef __ENUMERATE_HTML_EVENT s_initialized = true; + return {}; } } |