fix(ext/node): add stubs for perf_hooks.PerformaceObserver (#23958)

Fixes https://github.com/denoland/deno/issues/23943
This commit is contained in:
Divy Srivastava 2024-05-23 04:59:20 -07:00 committed by GitHub
parent fa1ba256d2
commit aeafb7b39e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 4 deletions

View file

@ -9,8 +9,15 @@ import {
PerformanceEntry,
} from "ext:deno_web/15_performance.js";
// FIXME(bartlomieju)
const PerformanceObserver = undefined;
class PerformanceObserver {
observe() {
notImplemented("PerformanceObserver.observe");
}
disconnect() {
notImplemented("PerformanceObserver.disconnect");
}
}
const constants = {};
const performance: