diff options
Diffstat (limited to 'ext/node/polyfills/_http_outgoing.ts')
-rw-r--r-- | ext/node/polyfills/_http_outgoing.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/node/polyfills/_http_outgoing.ts b/ext/node/polyfills/_http_outgoing.ts index 50869ad82..8882ade55 100644 --- a/ext/node/polyfills/_http_outgoing.ts +++ b/ext/node/polyfills/_http_outgoing.ts @@ -4,7 +4,6 @@ // TODO(petamoriken): enable prefer-primordials for node polyfills // deno-lint-ignore-file prefer-primordials -const core = globalThis.__bootstrap.core; import { getDefaultHighWaterMark } from "ext:deno_node/internal/streams/state.mjs"; import assert from "ext:deno_node/internal/assert.mjs"; import EE from "node:events"; @@ -544,7 +543,7 @@ export class OutgoingMessage extends Stream { data = new Uint8Array(data.buffer); } if (data.buffer.byteLength > 0) { - core.writeAll(this._bodyWriteRid, data).then(() => { + this._bodyWriter.write(data).then(() => { callback?.(); this.emit("drain"); }).catch((e) => { |