From b2634238d8d50e3801cb716e3f3165be1c50418a Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Thu, 19 Sep 2019 11:36:02 +0900 Subject: 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 Reviewed-By: David Carlier Reviewed-By: Ben Coe --- test/fixtures/v8-coverage/throw.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/fixtures/v8-coverage/throw.js (limited to 'test/fixtures') 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'); -- cgit v1.2.3