node/test/fixtures/v8-coverage/throw.js
Joyee Cheung b2634238d8
src: disconnect inspector before exiting out of fatal exception
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>
2019-09-24 09:55:00 -07:00

8 lines
96 B
JavaScript

const a = 99;
if (true) {
const b = 101;
} else {
const c = 102;
}
throw new Error('test');