mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
fix: correct type error text (#5150)
This commit is contained in:
parent
aca21dad1b
commit
5fea4e826c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue