Skip to content

Commit 70f5ff4

Browse files
committed
fixup! fs: change default value of position in read and readSync
1 parent 58f6904 commit 70f5ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-fs-promisified.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const exists = promisify(fs.exists);
1111

1212
{
1313
const fd = fs.openSync(__filename, 'r');
14-
read(fd, Buffer.alloc(1024), 0, 1024, null).then(common.mustCall((obj) => {
14+
read(fd, Buffer.alloc(1024), 0, 1024, -1).then(common.mustCall((obj) => {
1515
assert.strictEqual(typeof obj.bytesRead, 'number');
1616
assert(obj.buffer instanceof Buffer);
1717
fs.closeSync(fd);

0 commit comments

Comments
 (0)