[DevTools] Fix display of stack frames with anonymous sources (#34237)

This commit is contained in:
Sebastian "Sebbie" Silbermann
2025-08-20 17:31:42 +02:00
committed by GitHub
parent 0bc71e67ab
commit 03fda05d2c
3 changed files with 19 additions and 9 deletions

View File

@@ -63,13 +63,18 @@ export function CallSiteView({
return (
<div className={styles.CallSite}>
{functionName || virtualFunctionName}
{' @ '}
<span
className={linkIsEnabled ? styles.Link : null}
onClick={viewSource}
title={url + ':' + line}>
{formatLocationForDisplay(url, line, column)}
</span>
{url !== '' && (
<>
{' @ '}
<span
className={linkIsEnabled ? styles.Link : null}
onClick={viewSource}
title={url + ':' + line}>
{formatLocationForDisplay(url, line, column)}
</span>
</>
)}
<ElementBadges environmentName={environmentName} />
</div>
);