1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 05:15:07 +00:00

LibWeb: Change the IDL type of MessageEvent::data to any

This commit is contained in:
Idan Horowitz 2021-10-01 18:21:38 +03:00 committed by Andreas Kling
parent ded8e84f32
commit b53fc8ad3d
4 changed files with 9 additions and 10 deletions

View file

@ -203,7 +203,7 @@ void WebSocket::on_message(ByteBuffer message, bool is_text)
return;
if (is_text) {
auto text_message = String(ReadonlyBytes(message));
dispatch_event(MessageEvent::create(EventNames::message, text_message, url()));
dispatch_event(MessageEvent::create(EventNames::message, JS::js_string(wrapper()->vm(), text_message), url()));
return;
}
// type indicates that the data is Binary and binaryType is "blob"