We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent beab3ee commit 5145747Copy full SHA for 5145747
test/parallel/test-fs-promisified.js
@@ -11,7 +11,7 @@ const exists = promisify(fs.exists);
11
12
{
13
const fd = fs.openSync(__filename, 'r');
14
- read(fd, Buffer.alloc(1024), 0, 1024, null).then(common.mustCall((obj) => {
+ read(fd, Buffer.alloc(1024), 0, 1024, -1).then(common.mustCall((obj) => {
15
assert.strictEqual(typeof obj.bytesRead, 'number');
16
assert(obj.buffer instanceof Buffer);
17
fs.closeSync(fd);
0 commit comments