MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / formatStackFrame

Function formatStackFrame

test/conductor/events.ts:203–209  ·  view source on GitHub ↗
(stackFrame: puppeteer.ConsoleMessageLocation)

Source from the content-addressed store, hash-verified

201}
202
203function formatStackFrame(stackFrame: puppeteer.ConsoleMessageLocation): string {
204 if (!stackFrame?.url) {
205 return '<unknown>';
206 }
207 const filename = stackFrame.url.replace(/^.*\//, '');
208 return `${filename}:${stackFrame.lineNumber}:${stackFrame.columnNumber}`;
209}
210
211export function dumpCollectedErrors(): void {
212 if (!(expectedErrors.length + fatalErrors.length)) {

Callers 1

installPageErrorHandlersFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected