Re: [whatwg/streams] Marking promise rejections as handled (#547)

> That is IIRC that if evaluating the member has any side-effect observable in JS should be implemented as a method.

Hmm this does make me rethink things. It is very subtle but it does seem like this is having an observable side effect. It is more clear if you state it as the fact that with a lazy-promise-creation approach, adding the code

```js
reader.ready;
```

to your program will cause an `unhandledrejection` event. That is not great.

I guess this pushes me back to thinking that status promises should simply never trigger unhandledrejection. So we should just go with the simple mark-as-handled approach. Do others agree?

-- 
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/issues/547#issuecomment-258962141

Received on Monday, 7 November 2016 21:07:14 UTC