Version
v16.7.0 - v22.7.0
Platform
Subsystem
perf_hooks
What steps will reproduce the bug?
Executing this script:
performance.mark('test');
performance.measure('test');
const markEntries = performance.getEntriesByName('test', 'mark');
console.log(markEntries);
How often does it reproduce? Is there a required condition?
100% of the time
What is the expected behavior? Why is that the expected behavior?
As per:
The expected behaviour is:
[
PerformanceMark {
name: 'test',
entryType: 'mark',
...
}
]
What do you see instead?
[
PerformanceMeasure {
name: 'test',
entryType: 'measure',
...
},
PerformanceMark {
name: 'test',
entryType: 'mark',
...
}
]
Additional information
This bug appears to have existed since performance.getEntriesByName was added as part of performance timeline spec compliance in v16.7.0.
#39297 introduced performance.getEntriesByName without a type argument. While the type argument was subsequently added to the underlying observe.getEntriesByName method in #39532, it was never passed through by performance.getEntriesByName.
Version
v16.7.0 - v22.7.0
Platform
Subsystem
perf_hooks
What steps will reproduce the bug?
Executing this script:
How often does it reproduce? Is there a required condition?
100% of the time
What is the expected behavior? Why is that the expected behavior?
As per:
The expected behaviour is:
What do you see instead?
Additional information
This bug appears to have existed since
performance.getEntriesByNamewas added as part of performance timeline spec compliance in v16.7.0.#39297 introduced
performance.getEntriesByNamewithout a type argument. While thetypeargument was subsequently added to the underlyingobserve.getEntriesByNamemethod in #39532, it was never passed through byperformance.getEntriesByName.