From 79285fa83bfbbef55d8afa8f28d11ae4a0b21927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 6 Dec 2022 02:00:10 +0100 Subject: npm: ensure runtime exceptions are surfaced when debugger is attached (#16943) Currently runtime exception are only displayed at the program end in terminal, which makes it only a partial fix, as a full fix requires https://github.com/denoland/rusty_v8/pull/1149 which adds new bindings to the inspector that allows to notify it about thrown exceptions. This will be handled in a follow up commit. --- cli/tests/testdata/inspector/error_with_npm_import.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 cli/tests/testdata/inspector/error_with_npm_import.js (limited to 'cli/tests/testdata/inspector') diff --git a/cli/tests/testdata/inspector/error_with_npm_import.js b/cli/tests/testdata/inspector/error_with_npm_import.js new file mode 100644 index 000000000..9244f2cf2 --- /dev/null +++ b/cli/tests/testdata/inspector/error_with_npm_import.js @@ -0,0 +1,7 @@ +// deno-lint-ignore-file + +import chalk from "npm:chalk"; + +console.log("hello"); + +throw new Error("boom!"); -- cgit v1.2.3