Skip to content

Commit

Permalink
fixup! fs: change default value of position in read and readSync
Browse files Browse the repository at this point in the history
  • Loading branch information
RaisinTen committed Jan 28, 2021
1 parent beab3ee commit 5145747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-fs-promisified.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const exists = promisify(fs.exists);

{
const fd = fs.openSync(__filename, 'r');
read(fd, Buffer.alloc(1024), 0, 1024, null).then(common.mustCall((obj) => {
read(fd, Buffer.alloc(1024), 0, 1024, -1).then(common.mustCall((obj) => {
assert.strictEqual(typeof obj.bytesRead, 'number');
assert(obj.buffer instanceof Buffer);
fs.closeSync(fd);
Expand Down

0 comments on commit 5145747

Please sign in to comment.