From ebd2047de442334d6a8fea3a1d2d87e49980f90e Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Fri, 26 Feb 2021 11:40:05 +0000 Subject: feat(cli/source_map): Use top user frame for error source lines (#9604) This commit changes formatting of JS errors; by not showing source lines for internal code. Where possible, instead using the top stack frame associated with user code i.e. the first location that is colourful and not a "deno:" URL. --- cli/tests/error_022_stack_custom_error.ts.out | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/tests/error_022_stack_custom_error.ts.out') diff --git a/cli/tests/error_022_stack_custom_error.ts.out b/cli/tests/error_022_stack_custom_error.ts.out index 89c536ddb..d95783d06 100644 --- a/cli/tests/error_022_stack_custom_error.ts.out +++ b/cli/tests/error_022_stack_custom_error.ts.out @@ -1,4 +1,6 @@ [WILDCARD]CustomError: custom error at [WILDCARD]tests/error_022_stack_custom_error.ts:[WILDCARD] error: Uncaught CustomError: custom error +const error = new CustomError(); + ^ at [WILDCARD]tests/error_022_stack_custom_error.ts:[WILDCARD] -- cgit v1.2.3