Re: [whatwg/streams] Timing differences on start promise on WritableStream (Issue #1298)

Thanks, Domenic!

While we are at it: the IDL has Promise conversion rule which requires creating a new promise, but when I tested with the following snippet, it seems nobody at all cares for that:

```js
new WritableStream({
  write() {
    console.log('write')
    const promise = Promise.resolve();
    promise.then = () => console.log('then');
    return promise;
  }
}).getWriter().write()
```

The log in the reference impl: write then
Everyone else: write

I guess everyone is not following the Web IDL spec here. I can file an issue, but I want to double check my understanding is correct that the reference impl works right and everyone else is wrong. Am I correct here?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1298#issuecomment-1770500293
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/issues/1298/1770500293@github.com>

Received on Thursday, 19 October 2023 10:12:24 UTC