mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 02:22:40 +00:00
fix: Use # to denote line number in stack traces (#6114)
This makes the URLs in stack traces actual URLs to the files. Before: https://deno.land/std/testing/asserts.ts:138:11 After: https://deno.land/std/testing/asserts.ts#138:11
This commit is contained in:
parent
9a783ae4e6
commit
c4c6a8dae4
19 changed files with 56 additions and 56 deletions
|
@ -93,7 +93,7 @@ unitTest(function prepareStackTrace(): void {
|
|||
getMockCallSite("CLI_SNAPSHOT.js", 23, 0),
|
||||
]);
|
||||
assert(result.startsWith("Error: foo\n"));
|
||||
assert(result.includes(".ts:"), "should remap to something in 'js/'");
|
||||
assert(result.includes(".ts#"), "should remap to something in 'js/'");
|
||||
});
|
||||
|
||||
unitTest(function captureStackTrace(): void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue