Re: [whatwg/streams] WIP: allow creating streams from specs while using fewer JS objects (#857)

TransformStreamDefaultSinkTransform is equivalent to PromiseInvokeOrNoop.
TransformStreamDefaultSinkInvokeTransform is equivalent to InvokeOrNoop.

The reason for the split is to separate operations that can throw from operations that can't. This doesn't help in Javascript but is useful in the standard text to avoid repetitive "If ... is an abrupt completion, return..." steps.

There used to be a generic operation called something like PromiseInvokeOrPerformFallback but it only had one caller and making it generic caused unnecessary complexity so I took it out.

The TransformStreamDefaultSink... naming made sense when they were part of the Sink implementation, but now it is just confusing. I will come up with new names for them.

-- 
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/857#issuecomment-347754762

Received on Wednesday, 29 November 2017 05:09:43 UTC