mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02:00
LibWeb: Add non const global object getter to EnvironmentSettingsObject
And sneak in a as_if tidyup too.
This commit is contained in:
committed by
Shannon Booth
parent
9e7aa878bc
commit
8d099b9cec
Notes:
github-actions[bot]
2026-02-26 06:24:02 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/8d099b9cec2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8144 Reviewed-by: https://github.com/tcl3 ✅
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user