Commit 53f037ecc34 for nodejs
commit 53f037ecc346bc5bde198e43f05da7a0f7b81b29
Author: Efe Karasakal <hi@efe.dev>
Date: Thu Oct 22 15:38:41 2026 +0200
quic: remove obsolete setOutbound()
Signed-off-by: Efe Karasakal <hi@efe.dev>
PR-URL: https://github.com/nodejs/node/pull/66646
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
diff --git a/lib/internal/quic/quic.js b/lib/internal/quic/quic.js
index 2d75c5cbe00..6603bd45289 100644
--- a/lib/internal/quic/quic.js
+++ b/lib/internal/quic/quic.js
@@ -2139,25 +2139,6 @@ class QuicStream {
this[kFinishClose](error); // A no-op, unless destroy() failed
}
- /**
- * Sets the outbound data source for the stream. This can only be called
- * once and must be called before any data will be sent. The body can be
- * an ArrayBuffer, a TypedArray or DataView, or a Blob. If the stream
- * is destroyed or already has an outbound data source, an error will
- * be thrown.
- * @param {ArrayBuffer|SharedArrayBuffer|ArrayBufferView|Blob} outbound
- */
- setOutbound(outbound) {
- assertIsQuicStream(this);
- if (this.destroyed) {
- throw new ERR_INVALID_STATE('Stream is destroyed');
- }
- if (this.#inner.state.hasOutbound) {
- throw new ERR_INVALID_STATE('Stream already has an outbound data source');
- }
- this.#handle.attachSource(validateBody(outbound));
- }
-
/**
* @param {object} headers
* @param {SendHeadersOptions} [options]