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

In general it's a bad idea to use `Promise.resolve()`-like behavior because it results in oddities like keeping expando properties, or not converting cases like

```js
const promise = Promise.resolve();
promise.then = doSomethingCustom;
```

into "normal" promises. This is why throughout the web platform we use `new Promise(r => r(webDeveloperValue))` instead.

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

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

Received on Thursday, 19 October 2023 04:40:30 UTC