fix(ext/node): add back perf_hooks.markResourceTiming (#29562)

Adding back a sham for "perf_hooks.markResourceTiming" that was removed
by accident in https://github.com/denoland/deno/pull/29323; a test was
added too, to ensure it doesn't regress in the future.

Closes https://github.com/denoland/deno/issues/29539
This commit is contained in:
Bartek Iwańczuk 2025-06-02 14:23:38 +02:00 committed by GitHub
parent fb723098a5
commit 02404333f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -31,7 +31,7 @@ performance.nodeTiming = {};
performance.timerify = () => notImplemented("timerify from performance");
// TODO(bartlomieju):
performance.timerify = () => {};
performance.markResourceTiming = () => {};
function monitorEventLoopDelay(options = {}) {
const { resolution = 10 } = options;