1
0
Fork 0
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:
Chris Knight 2020-05-08 13:28:46 +01:00 committed by GitHub
parent aca21dad1b
commit 5fea4e826c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ export class WritableStreamDefaultWriterImpl<W>
throw new TypeError("Invalid stream."); throw new TypeError("Invalid stream.");
} }
if (isWritableStreamLocked(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; this[sym.ownerWritableStream] = stream;
stream[sym.writer] = this; stream[sym.writer] = this;