Files
node/lib
James M Snell 7d0f680aaf fs: use a default callback for fs.close()
The `fs.close()` function requires a callback. Most often the only thing
that callback does is check and rethrow the error if one occurs. To
eliminate common boilerplate, make the callback optional with a default
that checks and rethrows the error as an uncaught exception.

Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: https://github.com/nodejs/node/pull/37174
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2021-02-05 08:00:02 -08:00
..
2020-05-24 03:26:21 +02:00
2020-02-18 22:15:50 -08:00
2020-10-21 01:26:34 +02:00
2021-01-22 19:54:34 -08:00
2021-01-26 07:37:18 -08:00
2021-01-22 19:56:34 -08:00
2020-12-29 16:06:05 +01:00
2021-01-17 17:06:22 +08:00
2021-01-30 07:49:28 -08:00
2020-12-01 14:27:43 +00:00
2021-01-28 12:53:50 +01:00
…
2021-01-17 17:06:22 +08:00
2020-12-28 19:47:41 +00:00
2020-12-22 19:39:31 +00:00