summaryrefslogtreecommitdiff
path: root/cli/tests/error_019_stack_function.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_019_stack_function.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_019_stack_function.ts.out')
-rw-r--r--cli/tests/error_019_stack_function.ts.out2
1 files changed, 2 insertions, 0 deletions
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]