diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-09-19 11:36:02 +0900 |
---|---|---|
committer | Benjamin Coe <bencoe@google.com> | 2019-09-24 09:55:00 -0700 |
commit | b2634238d8d50e3801cb716e3f3165be1c50418a (patch) | |
tree | 8d8d0828cbdd8feef99fe663b16ae7fc0e627dd5 /test/fixtures | |
parent | c5f5f84a33967862036c7d87f4bbde6a59d3820a (diff) | |
download | node-new-b2634238d8d50e3801cb716e3f3165be1c50418a.tar.gz |
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>
Diffstat (limited to 'test/fixtures')
-rw-r--r-- | test/fixtures/v8-coverage/throw.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fixtures/v8-coverage/throw.js b/test/fixtures/v8-coverage/throw.js new file mode 100644 index 0000000000..7436fc9978 --- /dev/null +++ b/test/fixtures/v8-coverage/throw.js @@ -0,0 +1,7 @@ +const a = 99; +if (true) { + const b = 101; +} else { + const c = 102; +} +throw new Error('test'); |