diff options
Diffstat (limited to 'ext/node/polyfills')
-rw-r--r-- | ext/node/polyfills/perf_hooks.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/node/polyfills/perf_hooks.ts b/ext/node/polyfills/perf_hooks.ts index 059677c9b..64c2c3e06 100644 --- a/ext/node/polyfills/perf_hooks.ts +++ b/ext/node/polyfills/perf_hooks.ts @@ -54,8 +54,10 @@ const performance: nodeTiming: {}, now: () => shimPerformance.now(), timerify: () => notImplemented("timerify from performance"), - // deno-lint-ignore no-explicit-any - timeOrigin: (shimPerformance as any).timeOrigin, + get timeOrigin() { + // deno-lint-ignore no-explicit-any + return (shimPerformance as any).timeOrigin; + }, markResourceTiming: () => {}, // @ts-ignore waiting on update in `deno`, but currently this is // a circular dependency |