]> git.ardis.lu - csvio/commit
Fix bug where it was not possible to read into an ArrayBuffer with offset
authorArdis Lu <ardisglu@gmail.com>
Wed, 6 Aug 2025 04:38:51 +0000 (21:38 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 6 Aug 2025 04:38:51 +0000 (21:38 -0700)
commit28da9a93796b8c814c4f0dc6312e53591298767f
treee09ace8970e98c0b31975237e4a6c48071482e6e
parent674280ac852ba95e1db32a846ac8708a6284f274
Fix bug where it was not possible to read into an ArrayBuffer with offset

The code was originally correct because it was copied from the Streams specification [1], but turned incorrect after copying from Node.js's implementation [2], and now reverted back to the original correct implementation.

[1] https://streams.spec.whatwg.org/#example-rbs-pull
[2] https://github.com/nodejs/node/blob/134625d76139b4b3630d5baaf2efccae01ede564/lib/internal/fs/promises.js#L322
src/core.js
test/core.test.js
This page took 0.051548 seconds and 4 git commands to generate.