Skip to content

Commit b9f542f

Browse files
exterkamppaulirish
authored andcommitted
core(runner): fix missing timing properties in the browser (#9072)
1 parent 0905864 commit b9f542f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lighthouse-core/runner.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,12 @@ class Runner {
186186
// resolution.
187187
.map(entry => {
188188
return /** @type {PerformanceEntry} */ ({
189-
...entry,
190-
duration: parseFloat(entry.duration.toFixed(2)),
189+
// Don't spread entry because browser PerformanceEntries can't be spread.
190+
// https://github.com/GoogleChrome/lighthouse/issues/8638
191191
startTime: parseFloat(entry.startTime.toFixed(2)),
192+
name: entry.name,
193+
duration: parseFloat(entry.duration.toFixed(2)),
194+
entryType: entry.entryType,
192195
});
193196
});
194197
const runnerEntry = timingEntries.find(e => e.name === 'lh:runner:run');

0 commit comments

Comments
 (0)