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

I think resolving with a `Uint8Array` ends up being problematic because of `Object.prototype.then`, see also https://github.com/web-platform-tests/wpt/blob/master/fetch/api/response/response-stream-with-broken-then.any.js.

So unless I'm missing something, I think we have to either:

1. Endure "callback hell" in spec land.
2. Special case Infra types in promises somehow.

-- 
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-947503985

Received on Wednesday, 20 October 2021 09:44:51 UTC