- From: Domenic Denicola <notifications@github.com>
- Date: Wed, 18 Oct 2023 21:40:24 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 19 October 2023 04:40:30 UTC
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