From 508f8315b32036f67acac89473649bdc2ae16ec0 Mon Sep 17 00:00:00 2001 From: Adam Rice Date: Wed, 26 Oct 2016 18:50:54 +0900 Subject: [PATCH] Editorial: Fix assert in WritableStreamAddWriteRequest WritableStreamAddWriteRequest was asserting that the _writer_ was not a locked stream. It should have been asserting that the _stream_ was not locked. Also removed a pointless variable assignment. --- index.bs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.bs b/index.bs index 725690e8d..265f08785 100644 --- a/index.bs +++ b/index.bs @@ -2695,8 +2695,7 @@ visible through the {{WritableStream}}'s public API. stream ) - 1. Let _writer_ be _stream_.[[writer]]. - 1. Assert: ! IsWritableStreamLocked(_writer_) is *true*. + 1. Assert: ! IsWritableStreamLocked(_stream_) is *true*. 1. Assert: _stream_.[[state]] is `"writable"`. 1. Let _promise_ be a new promise. 1. Append _promise_ as the last element of _stream_.[[writeRequests]].