mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
fix(trace-viewer): can't read object type (#7802)
This commit is contained in:
parent
03ebe21323
commit
a20e20cdae
@ -59,7 +59,7 @@ export function stats(action: ActionTraceEvent): { errors: number, warnings: num
|
||||
for (const event of eventsForAction(action)) {
|
||||
if (event.metadata.method === 'console') {
|
||||
const { guid } = event.metadata.params.message;
|
||||
const type = p.objects[guid].type;
|
||||
const type = p.objects[guid]?.type;
|
||||
if (type === 'warning')
|
||||
++warnings;
|
||||
else if (type === 'error')
|
||||
|
Loading…
Reference in New Issue
Block a user