summaryrefslogtreecommitdiff
path: root/cli/tests/error_022_stack_custom_error.ts.out
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2021-02-26 11:40:05 +0000
committerGitHub <noreply@github.com>2021-02-26 12:40:05 +0100
commitebd2047de442334d6a8fea3a1d2d87e49980f90e (patch)
tree34004d5082702e89ec0b2fec5f29f10a25038f98 /cli/tests/error_022_stack_custom_error.ts.out
parent3d87198ba0e8775e303da01519f01a2025c55cee (diff)
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.
Diffstat (limited to 'cli/tests/error_022_stack_custom_error.ts.out')
-rw-r--r--cli/tests/error_022_stack_custom_error.ts.out2
1 files changed, 2 insertions, 0 deletions
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]