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

(this might just be echoing @ricea above) 

I think this bug is even more general: I've got a prototype implementation of streams that uses the promise semantics, and [even without Fetch / Byte streams complications, it's still vulnerable to `Object.prototype.then`](https://phabricator.services.mozilla.com/D128950), because of the WebIDL resolution semantics. Essentially, the spec as written today shouldn't pass the simplified test case or response-stream-with-broken-then.any.js.

Chrome passes because they are still implementing the `forAuthorCode` bool workaround. 

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

Received on Wednesday, 20 October 2021 13:33:28 UTC