Files
node/doc/api
Antonio Román 74b9baa426 v8: make writeHeapSnapshot throw if fopen fails
If the file fails to be written (e.g. missing permissions, no space left
on device, etc), `writeHeapSnapshot` will now throw an exception.

This commit also adds error handling for the `fclose` call, returning
false if a non-zero value was returned.

Fixes: https://github.com/nodejs/node/issues/41346

PR-URL: https://github.com/nodejs/node/pull/41373
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2022-01-12 08:39:49 +00:00
..
2021-12-24 07:26:38 -08:00
2022-01-10 23:49:27 +00:00
2022-01-10 10:13:35 +00:00
2021-12-17 18:13:50 -05:00
2022-01-08 05:31:40 +00:00
2021-12-23 13:31:54 -05:00
2021-09-21 18:40:04 -07:00
2021-12-17 18:13:50 -05:00
2022-01-10 23:49:27 +00:00
2021-12-09 08:31:35 -08:00
2021-12-17 18:13:50 -05:00
2021-10-20 10:40:02 -04:00