streams
streams copied to clipboard
Using streams from other specs: define a byte-counting strategy
trafficstars
In particular, define one that consults internal slots, as opposed to ByteLengthQueuingStrategy's JavaScript property lookup.
Useful for https://github.com/WICG/serial/pull/105#discussion_r523232500
On the other hand, if you create a byte stream, the highWaterMark is always interpreted as bytes. Maybe we should recommend that instead?
That's a good point; now that byte streams are a bit more real, we should work on making them easier to use from other specs. (Currently the other-spec algorithms can't even create them.)