So that coverage, .etc are properly written in case of a normal fatal exception. PR-URL: https://github.com/nodejs/node/pull/29611 Fixes: https://github.com/nodejs/node/issues/29570 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Ben Coe <bencoe@gmail.com>
7 lines
96 B
JavaScript
7 lines
96 B
JavaScript
const a = 99;
|
|
if (true) {
|
|
const b = 101;
|
|
} else {
|
|
const c = 102;
|
|
}
|
|
throw new Error('test');
|