LibWeb: Add non const global object getter to EnvironmentSettingsObject

And sneak in a as_if tidyup too.
This commit is contained in:
Shannon Booth
2026-02-24 21:57:30 +01:00
committed by Shannon Booth
parent 9e7aa878bc
commit 8d099b9cec
Notes: github-actions[bot] 2026-02-26 06:24:02 +00:00
2 changed files with 3 additions and 3 deletions

View File

@@ -119,6 +119,7 @@ public:
JS::Realm& realm();
JS::Object& global_object();
JS::Object const& global_object() const { return const_cast<EnvironmentSettingsObject*>(this)->global_object(); }
EventLoop& responsible_event_loop();
// https://fetch.spec.whatwg.org/#concept-fetch-group