Skip to content

Commit 9521296

Browse files
committed
parse empty and "address at" urls as non-hyperlinked text
1 parent 7774c38 commit 9521296

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

front_end/panels/console/ErrorStackParser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ export function parseSourcePositionsFromErrorStack(
7979

8080
const linkCandidate = line.substring(left, right);
8181
const splitResult = Common.ParsedURL.ParsedURL.splitLineAndColumn(linkCandidate);
82-
if (splitResult.url === '<anonymous>' || splitResult.url === 'native') {
82+
const skipParsingUrl = ['<anonymous>', 'native', ''].includes(splitResult.url) || splitResult.url.startsWith?.('address at ');
83+
if (skipParsingUrl) {
8384
if (linkInfos.length && linkInfos[linkInfos.length - 1].isCallFrame && !linkInfos[linkInfos.length - 1].link) {
8485
// Combine builtin frames.
8586
linkInfos[linkInfos.length - 1].line += `\n${line}`;

0 commit comments

Comments
 (0)