From 5370220ab2e8978611a827ac11aba1318bb93969 Mon Sep 17 00:00:00 2001 From: Nitzan Uziely Date: Sun, 18 Apr 2021 22:40:59 +0300 Subject: [PATCH] fs: allow no-params fsPromises fileHandle read allow no-params read for fsPromises fileHandle read PR-URL: https://github.com/nodejs/node/pull/38287 Reviewed-By: Anna Henningsen Reviewed-By: Antoine du Hamel Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott Reviewed-By: Darshan Sen Reviewed-By: Luigi Pinca --- doc/api/fs.md | 2 +- lib/internal/fs/promises.js | 3 +++ test/parallel/test-fs-promises-file-handle-read.js | 8 ++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 9190d41b218fc9..179cabbfff5113 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -285,7 +285,7 @@ Reads data from the file and stores that in the given buffer. If the file is not modified concurrently, the end-of-file is reached when the number of bytes read is zero. -#### `filehandle.read(options)` +#### `filehandle.read([options])`