mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
LibWeb: Move initialization of the MainThreadVM to WebContent's main()
It is a fallible operation, so this lets us abort early if it fails.
This commit is contained in:
parent
13dfadba79
commit
6e1b5b541a
4 changed files with 307 additions and 291 deletions
|
@ -50,7 +50,10 @@ struct WebEngineCustomJobCallbackData final : public JS::JobCallback::CustomData
|
|||
};
|
||||
|
||||
HTML::Script* active_script();
|
||||
|
||||
ErrorOr<void> initialize_main_thread_vm();
|
||||
JS::VM& main_thread_vm();
|
||||
|
||||
void queue_mutation_observer_microtask(DOM::Document const&);
|
||||
NonnullOwnPtr<JS::ExecutionContext> create_a_new_javascript_realm(JS::VM&, Function<JS::Object*(JS::Realm&)> create_global_object, Function<JS::Object*(JS::Realm&)> create_global_this_value);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue