- From: Marvin Hagemeister <notifications@github.com>
- Date: Fri, 14 Oct 2016 09:20:25 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Friday, 14 October 2016 16:22:37 UTC
marvinhagemeister commented on this pull request.
> @@ -0,0 +1,15 @@
+'use strict';
+
+if (self.importScripts) {
+ self.importScripts('/resources/testharness.js');
+}
+
+test(() => {
+ const ts = new TransformStream({ transform() { } });
+}, 'TransformStream can be constructed with a transform function');
+
+test(() => {
+ const error = new TypeError('something bad');
+ assert_throws(error, () => new TransformStream(), 'TransformStream cannot be constructed with no arguments');
agree, that looks cleaner
--
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/531
Received on Friday, 14 October 2016 16:22:37 UTC