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:
Andrew Mitchell 2020-06-05 12:01:02 +00:00 committed by GitHub
parent 9a783ae4e6
commit c4c6a8dae4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 56 additions and 56 deletions

View file

@ -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 {