Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1718134 [wpt PR 29488] - Streams: read with fixed endianness, a=t…
…estonly Automatic update from web-platform-tests Streams: read with fixed endianness In some tests for readable byte streams, we pass a Uint16Array to reader.read(view), then write into it as a Uint8Array and finally read the results back as a Uint16Array. However, Uint16Array uses the platform byte order, whereas these tests assume that it's always in little-endian order. Node.js has also started implementing the Streams API (nodejs/node#39062), and they also run on big-endian platforms. To support this, the tests must be independent of the platform byte order. Use a DataView to achieve this. -- wpt-commits: afcacf21caaf9d0efd6601833077e04af9b4dee1 wpt-pr: 29488
- Loading branch information