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_019_stack_function.ts.out | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/tests/error_019_stack_function.ts.out') diff --git a/cli/tests/error_019_stack_function.ts.out b/cli/tests/error_019_stack_function.ts.out index a360e7d8e..66e37bce9 100644 --- a/cli/tests/error_019_stack_function.ts.out +++ b/cli/tests/error_019_stack_function.ts.out @@ -2,5 +2,7 @@ at foo ([WILDCARD]tests/error_019_stack_function.ts:[WILDCARD]) at [WILDCARD]tests/error_019_stack_function.ts:[WILDCARD] error: Uncaught Error: function + throw new Error("function"); + ^ at foo ([WILDCARD]tests/error_019_stack_function.ts:[WILDCARD]) at [WILDCARD]tests/error_019_stack_function.ts:[WILDCARD] -- cgit v1.2.3