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

MattiasBuelens 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 => {

You mean like this?
```javascript
return PerformPromiseThen(transformPromise, undefined, r => { /* ... */ });
```
I think it's a bit weird to not have a fulfillment handler. But yes, it would be more accurate. I'll change it.

-- 
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_r315819821

Received on Tuesday, 20 August 2019 17:44:41 UTC