From ef72490cde1d8a735089c30219e293e5cc59eca5 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 e5c04d97541aa2..8c12ce0bdbd9ca 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -275,7 +275,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])`