diff --git a/src/js/internal/webstreams/adapters.js b/src/js/internal/webstreams/adapters.js index ef4076c733d96..5405f4b75ffb1 100644 --- a/src/js/internal/webstreams/adapters.js +++ b/src/js/internal/webstreams/adapters.js @@ -546,7 +546,7 @@ function newStreamWritableFromWritableStream(writableStream, options = kEmptyObj // ended, we signal an error on the stream.Writable. closed = true; if (!isWritableEnded(writable)) - destroy(writable, new ERR_STREAM_PREMATURE_CLOSE()); + destroy(writable, $ERR_STREAM_PREMATURE_CLOSE()); }, (error) => { // If the WritableStream errors before the stream.Writable has been