summaryrefslogtreecommitdiff
path: root/cli/js
diff options
context:
space:
mode:
authorChris Knight <cknight1234@gmail.com>2020-05-08 13:28:46 +0100
committerGitHub <noreply@github.com>2020-05-08 14:28:46 +0200
commit5fea4e826cc106e2c42fb279a7115a52572aa907 (patch)
treef54bddcf21f99915eb6fcab156a222624620a6eb /cli/js
parentaca21dad1ba576e2e8b81cfa5ac87d58c69f1de6 (diff)
fix: correct type error text (#5150)
Diffstat (limited to 'cli/js')
-rw-r--r--cli/js/web/streams/writable_stream_default_writer.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/js/web/streams/writable_stream_default_writer.ts b/cli/js/web/streams/writable_stream_default_writer.ts
index cd6b71044..444a77aa9 100644
--- a/cli/js/web/streams/writable_stream_default_writer.ts
+++ b/cli/js/web/streams/writable_stream_default_writer.ts
@@ -31,7 +31,7 @@ export class WritableStreamDefaultWriterImpl<W>
throw new TypeError("Invalid stream.");
}
if (isWritableStreamLocked(stream)) {
- throw new TypeError("Cannot create a reader for a locked stream.");
+ throw new TypeError("Cannot create a writer for a locked stream.");
}
this[sym.ownerWritableStream] = stream;
stream[sym.writer] = this;