You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
performance.getEntriesByName is not a function #21621
const{ performance }=require('perf_hooks');performance.mark('A');setTimeout(()=>{performance.mark('B');performance.measure('A to B','A','B');constentry=performance.getEntriesByName('A to B','measure');console.log(entry.duration);},10000);
output:
TypeError: performance.getEntriesByName is not a function
at Timeout.setTimeout [as _onTimeout] (repl:4:29)
at ontimeout (timers.js:427:11)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
Activity
targos commentedon Jul 2, 2018
This method was removed in v10.0.0.
See #19563