Guard against undefined navtimings (#2995)
This commit is contained in:
parent
6894206188
commit
2faf6bbf00
|
|
@ -35,12 +35,14 @@ module.exports = {
|
|||
});
|
||||
|
||||
forEach(browsertimeRunData.timings.navigationTiming, (value, name) => {
|
||||
statsHelpers.pushGroupStats(
|
||||
this.statsPerType,
|
||||
this.groups[group],
|
||||
['navigationTiming', name],
|
||||
value
|
||||
);
|
||||
if (value) {
|
||||
statsHelpers.pushGroupStats(
|
||||
this.statsPerType,
|
||||
this.groups[group],
|
||||
['navigationTiming', name],
|
||||
value
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
// pick up one level of custom metrics
|
||||
|
|
|
|||
Loading…
Reference in New Issue