From 2f82873a88cbaea4ebe8e39b5aa7b57ed867512e Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 14 Aug 2024 13:03:53 +0200 Subject: [PATCH] fix(ext/node): don't throw when calling PerformanceObserver.observe (#25036) --- ext/node/polyfills/perf_hooks.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/node/polyfills/perf_hooks.ts b/ext/node/polyfills/perf_hooks.ts index d48635856b..d92b925b5f 100644 --- a/ext/node/polyfills/perf_hooks.ts +++ b/ext/node/polyfills/perf_hooks.ts @@ -10,11 +10,12 @@ import { } from "ext:deno_web/15_performance.js"; class PerformanceObserver { + static supportedEntryTypes: string[] = []; observe() { - notImplemented("PerformanceObserver.observe"); + // todo(lucacasonato): actually implement this } disconnect() { - notImplemented("PerformanceObserver.disconnect"); + // todo(lucacasonato): actually implement this } }