perf_hooks: add missing type argument to getEntriesByName
Fixes: https://github.com/nodejs/node/issues/54766
This change adds an optional type
argument to performance.getEntriesByName
, aligning with both the documented node.js method signature and the performance timing spec.