- From: Takeshi Yoshino <notifications@github.com>
- Date: Mon, 24 Oct 2016 04:25:18 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Monday, 24 October 2016 11:25:45 UTC
tyoshino commented on this pull request.
> @@ -197,3 +197,15 @@ promise_test(() => {
assert_equals(writeCount, numberOfWrites, `should have called sink's write ${numberOfWrites} times`));
});
}, 'a large queue of writes should be processed completely');
+
+promise_test(() => {
+ const stream = recordingWritableStream();
+ const w = stream.getWriter();
+ const WritableStreamDefaultWriter = w.constructor;
+ w.releaseLock();
+ const writer = new WritableStreamDefaultWriter(stream);
Okay. So, we should keep in mind that invocation of `.getWriter()` shouldn't be used for detecting obtaining of a writer. We've already switched to not use public method invocation for controlling its behavior for pipeTo() implementation. So, yes, I understand it's ok.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/544
Received on Monday, 24 October 2016 11:25:45 UTC