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
SyntaxError in node:perf_hooks documentation #60368
Upon running node test.mjs, an exception is thrown: SyntaxError: The requested module 'node:perf_hooks' does not provide an export named 'eventLoopUtilization'
I think there is no reason that we should expose eventLoopUtilization on Web performance object. The function can be used standalone without dependencies on the performance API. We should expose it on the perf_hooks module directly: #60370
the EventLoopUtilization() can not be imported because it is not exported in the other hand performance object is actually exported explicitly so all you need to do is extracting the EventLoopUtilization() method from the performance object and the issue will be solved
Activity
marco-ippolito commentedon Oct 22, 2025
yes
eventLoopUtilizationis not exported directly, we should fix the documentationlegendecas commentedon Oct 22, 2025
I think there is no reason that we should expose
eventLoopUtilizationon Webperformanceobject. The function can be used standalone without dependencies on theperformanceAPI. We should expose it on theperf_hooksmodule directly: #60370felixcamilo commentedon Oct 24, 2025
the EventLoopUtilization() can not be imported because it is not exported in the other hand performance object is actually exported explicitly so all you need to do is extracting the EventLoopUtilization() method from the performance object and the issue will be solved
perf_hooks: move non-standard performance properties to perf_hooks
perf_hooks: move non-standard performance properties to perf_hooks
perf_hooks: move non-standard performance properties to perf_hooks
perf_hooks: move non-standard performance properties to perf_hooks
perf_hooks: move non-standard performance properties to perf_hooks
perf_hooks: move non-standard performance properties to perf_hooks