Files
node/doc/api
Livia Medeiros 0c9273d126 fs: fix write methods param validation and docs
The FS docs wrongfully indicated support for passing object with an own 
`toString` function property to `FileHandle.prototype.appendFile`, 
`FileHandle.prototype.writeFile`, `FileHandle.prototype.write`, 
`fsPromises.writeFile`, and `fs.writeSync`. This commit fixes that, and 
adds some test to ensure the actual behavior is aligned with the docs.
It also fixes a bug that makes the process crash if a non-buffer object 
was passed to `FileHandle.prototype.write`.

Refs: https://github.com/nodejs/node/pull/34993
PR-URL: https://github.com/nodejs/node/pull/41677
Refs: https://github.com/nodejs/node/issues/41666
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2022-04-04 12:57:59 +02:00
..
2022-02-10 13:23:49 -05:00
2022-04-01 14:54:14 +01:00
2022-04-02 22:35:38 -07:00
2022-02-26 10:52:52 +00:00
2022-02-05 08:36:48 -08:00
2022-03-21 22:21:09 +00:00
2022-02-05 08:36:48 -08:00
2022-03-27 14:57:13 +01:00
2022-02-11 08:52:24 +00:00
2021-09-21 18:40:04 -07:00
2022-03-21 22:21:09 +00:00
2022-02-17 14:59:41 +00:00
2022-03-06 18:12:28 +00:00
2022-03-02 14:55:53 +00:00
2022-03-02 14:55:53 +00:00