Re: [whatwg/streams] Add helpers to use initial values of Promise methods (#1010)

ricea commented on this pull request.



> @@ -325,7 +325,7 @@ function TransformStreamDefaultControllerError(controller, e) {
 
 function TransformStreamDefaultControllerPerformTransform(controller, chunk) {
   const transformPromise = controller._transformAlgorithm(chunk);
-  return transformPromise.catch(r => {
+  return PerformPromiseCatch(transformPromise, r => {

Yes. I'm so used to doing this that it doesn't look weird to me any more :smile:.

-- 
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/1010#discussion_r315961939

Received on Wednesday, 21 August 2019 00:56:02 UTC