Re: [whatwg/streams] Resolving promises with byte sequences results in UB (Issue #1178)

I think we've been pretending that resolving a Promise with a non-JavaScript type is a meaningful operation, and mostly getting away with it, but now we've run out of luck. I'm sorry for the trouble it caused.

My guess is that having proper spec language for resolving Promises with Infra types would be hard, because the ES spec language is really complex and would be hard to integrate with.

This leaves us with callback hell. My feeling is that using Promises internally within specs turned out to be a bad idea, and so callback hell is inevitable. Maybe an alternative would be some kind of "lite promise" in Infra which we use purely for spec purposes?

-- 
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/1178#issuecomment-947529527

Received on Wednesday, 20 October 2021 10:19:37 UTC