Re: [heycam/webidl] Some things do not seem sound in “react to a Promise<T>” (#943)

Previously the first issue was discussed in https://github.com/heycam/webidl/issues/782

Some ideas:

- Remove the `<T>` from promise types entirely. It seems this better matches implementations.
- Make failed type conversions be treated as rejected promises.
- Add a third set of steps, something like "type conversion failed" steps.

For your second issue, I feel like the spec is pretty OK as-is? The spec is saying that every time you write "react to", you are doing something equivalent to 

```js
promise.then(v => {
  const converted = typeConvert(v);
  runActualSteps(converted);
});
```

(modulo the first problem about what happens with errors) which seems rather natural. Are there specific specs where you can see there being a problem with the current behavior?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/943#issuecomment-740265990

Received on Tuesday, 8 December 2020 00:28:10 UTC