mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
LibJS+LibWeb: Let Realm store a plain Object for [[GlobalObject]]
This removes the requirement of having a global object that actually inherits from JS::GlobalObject, which is now a perfectly valid scenario. With the upcoming removal of wrapper objects in LibWeb, the HTML::Window object will inherit from DOM::EventTarget, which means it cannot also inherit from JS::GlobalObject.
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 07:39:33 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/52543fc771 Pull-request: https://github.com/SerenityOS/serenity/pull/15057
@@ -100,7 +100,7 @@ private:
|
||||
|
||||
EventLoop& main_thread_event_loop();
|
||||
void old_queue_global_task_with_document(HTML::Task::Source, DOM::Document&, Function<void()> steps);
|
||||
void queue_global_task(HTML::Task::Source, JS::GlobalObject&, Function<void()> steps);
|
||||
void queue_global_task(HTML::Task::Source, JS::Object&, Function<void()> steps);
|
||||
void queue_a_microtask(DOM::Document*, Function<void()> steps);
|
||||
void perform_a_microtask_checkpoint();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user