diff options
author | 2022-06-22 16:47:12 -0700 | |
---|---|---|
committer | 2022-06-22 16:48:03 -0700 | |
commit | 41575b982c386e17d5f1228b50fb9fd309c981cc (patch) | |
tree | 120ab1505d891643cd33efa24c49101e134a8f65 /src/javascript/jsc/bindings/webcore/WebSocket.cpp | |
parent | b4feb33df98f5b0d50dc65174ce1161b1fadd5cb (diff) | |
download | bun-41575b982c386e17d5f1228b50fb9fd309c981cc.tar.gz bun-41575b982c386e17d5f1228b50fb9fd309c981cc.tar.zst bun-41575b982c386e17d5f1228b50fb9fd309c981cc.zip |
cleanup
Diffstat (limited to 'src/javascript/jsc/bindings/webcore/WebSocket.cpp')
-rw-r--r-- | src/javascript/jsc/bindings/webcore/WebSocket.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/javascript/jsc/bindings/webcore/WebSocket.cpp b/src/javascript/jsc/bindings/webcore/WebSocket.cpp index d9ffd7278..3fe881192 100644 --- a/src/javascript/jsc/bindings/webcore/WebSocket.cpp +++ b/src/javascript/jsc/bindings/webcore/WebSocket.cpp @@ -31,7 +31,6 @@ #include "config.h" #include "WebSocket.h" -#include "WebSocketStream.h" #include "headers.h" // #include "Blob.h" #include "CloseEvent.h" @@ -798,8 +797,7 @@ void WebSocket::didReceiveBinaryData(Vector<uint8_t>&& binaryData) } if (auto* context = scriptExecutionContext()) { - - context->postTask([this, message_ = message, protectedThis = Ref { *this }](ScriptExecutionContext& context) { + context->postTask([this, binaryData = binaryData, protectedThis = Ref { *this }](ScriptExecutionContext& context) { ASSERT(scriptExecutionContext()); protectedThis->dispatchEvent(MessageEvent::create(ArrayBuffer::create(binaryData.data(), binaryData.size()), m_url.string())); }); @@ -1039,7 +1037,7 @@ void WebSocket::didFailWithErrorCode(int32_t code) break; } - // failed_to_allocate_memory + // failed_to_allocate_memory case 18: { auto message = MAKE_STATIC_STRING_IMPL("Failed to allocate memory"); didReceiveMessageError(message); |