Re: [whatwg/streams] WritableStream abort logic clean up (#655)

isonmad commented on this pull request.



> +
+    abortPromise = writer.abort(error1);
+    abortPromise.catch(() => {
+      abortPromiseRejected = true;
+    });
+
+    const writePromise2 = writer.write('a');
+
+    writer.closed.catch(() => {
+      closedRejected = true;
+    });
+
+    return Promise.all([
+      promise_rejects(t, new TypeError(), writePromise2, 'writePromise2 must be rejected'),
+      promise_rejects(t, new TypeError(), writer.ready, 'writer.ready must be rejected after abort()'),
+      flushAsyncEvents()

How? The return statement is 3 lines above this.

-- 
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/655

Received on Monday, 16 January 2017 22:52:32 UTC