Uh oh!
There was an error while loading. Please reload this page.
Add readable byte streams - #1362
Conversation
Thanks for the PR! This section of the codebase is owned by Kagami Sascha Rosylight (@saschanaz) - if they write a comment saying "LGTM" then it will be merged. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Kagami Sascha Rosylight (saschanaz)
left a comment
There was a problem hiding this comment.
Cool, thanks! Some nits.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Mattias Buelens (MattiasBuelens)
left a comment
There was a problem hiding this comment.
Unit tests are added.
I also added additional constructor signatures for ReadableStream, to distinguish between byte streams and non-byte streams. (This is a bit complex, so please take a look!)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Kagami Sascha Rosylight (saschanaz)
left a comment
There was a problem hiding this comment.
Thank you!
(Sorry for responding late, I was off and playing games 😄. My vacation does not really apply here, but whatever.)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com>
Kagami Sascha Rosylight (saschanaz)
left a comment
There was a problem hiding this comment.
Okay everything's cool, thank you for additional assertions!
| controller.close(); | ||
| }, | ||
| cancel(reason) { | ||
| assertType<any>(reason); |
There was a problem hiding this comment.
Does this really do anything? 😄 (But probably good to be explicit)
There was a problem hiding this comment.
¯\_(ツ)_/¯
LGTM |
Merging because Kagami Sascha Rosylight (@saschanaz) is a code-owner of all the changes - thanks! |
With Firefox 102 adding support for readable byte streams, we now have two browser engines (Chromium and Gecko) shipping this feature. This means we can finally add official type definitions! 😁
Most of work was already done in #890 but then those types had to be removed. This PR brings them back, and hopefully they'll stay this time around. 😅