diff --git a/lib/web/websocket/receiver.js b/lib/web/websocket/receiver.js index cd3e7d4ea79..5e25dc93b48 100644 --- a/lib/web/websocket/receiver.js +++ b/lib/web/websocket/receiver.js @@ -278,7 +278,6 @@ class ByteParser extends Writable { } else { let offset = 0 // If Buffer.allocUnsafe is used, extra copies will be made because the offset is non-zero. - const buffer = Buffer.allocUnsafeSlow(n) while (offset !== n) { const next = this.#buffers[0]