1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:17:36 +00:00

LibWeb: Move setting of FormDataPrototype to initialize()

This moves the setting of FormDataPrototype out of the constructor to
initialize().
This commit is contained in:
Kenneth Myhra 2023-02-12 20:29:30 +01:00 committed by Sam Atkins
parent 4b1e501bdf
commit f698585097
2 changed files with 9 additions and 1 deletions

View file

@ -39,6 +39,7 @@ public:
private:
explicit FormData(JS::Realm&, HashMap<DeprecatedString, Vector<FormDataEntryValue>> entry_list = {});
virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;
WebIDL::ExceptionOr<void> append_impl(String const& name, Variant<JS::NonnullGCPtr<FileAPI::Blob>, String> const& value, Optional<String> const& filename = {});