Files
node/lib
翠 / green c41cf6fd49 fs: add stacktrace to fs/promises
Sync functions in fs throwed an error with a stacktrace which is helpful
for debugging. But functions in fs/promises throwed an error without
a stacktrace. This commit adds stacktraces by calling
Error.captureStacktrace and re-throwing the error.

Refs: https://github.com/nodejs/node/issues/34817
PR-URL: https://github.com/nodejs/node/pull/49849
Fixes: https://github.com/nodejs/node/issues/50160
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
2023-10-26 02:35:40 +00:00
..
2023-07-11 19:50:13 +03:00
2023-06-24 15:52:38 +00:00
2023-04-29 06:57:08 +00:00
2023-03-26 18:03:58 +00:00
2023-07-11 21:10:27 +00:00
2023-07-16 09:46:27 +00:00
2023-06-12 00:00:46 +00:00
2023-07-11 21:10:28 +00:00
2023-04-03 17:47:28 +00:00
2023-07-11 19:50:13 +03:00
2023-05-02 00:48:20 +00:00
2023-07-05 13:39:38 +00:00
2023-05-02 00:48:20 +00:00