diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-01 18:21:38 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-01 20:14:45 +0200 |
commit | b53fc8ad3d4da15e1c7ec6ccd9889f261c5d160a (patch) | |
tree | bb2cc00b91df3ff7f12d97c35c412795fa667bdd /Userland/Libraries/LibWeb/HTML/MessageEvent.h | |
parent | ded8e84f32cf937bf1115f2a8dd0d19db55e212a (diff) | |
download | serenity-b53fc8ad3d4da15e1c7ec6ccd9889f261c5d160a.zip |
LibWeb: Change the IDL type of MessageEvent::data to any
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/MessageEvent.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/MessageEvent.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/MessageEvent.h b/Userland/Libraries/LibWeb/HTML/MessageEvent.h index 5fa92bcf4e..c639fb22b8 100644 --- a/Userland/Libraries/LibWeb/HTML/MessageEvent.h +++ b/Userland/Libraries/LibWeb/HTML/MessageEvent.h @@ -14,25 +14,25 @@ class MessageEvent : public DOM::Event { public: using WrapperType = Bindings::MessageEventWrapper; - static NonnullRefPtr<MessageEvent> create(const FlyString& event_name, const String& data, const String& origin) + static NonnullRefPtr<MessageEvent> create(const FlyString& event_name, JS::Value data, String const& origin) { return adopt_ref(*new MessageEvent(event_name, data, origin)); } virtual ~MessageEvent() override = default; - const String& data() const { return m_data; } - const String& origin() const { return m_origin; } + JS::Value data() const { return m_data; } + String const& origin() const { return m_origin; } protected: - MessageEvent(const FlyString& event_name, const String& data, const String& origin) + MessageEvent(const FlyString& event_name, JS::Value data, String origin) : DOM::Event(event_name) , m_data(data) - , m_origin(origin) + , m_origin(move(origin)) { } - String m_data; + JS::Value m_data; String m_origin; }; |