mirror of
https://github.com/denoland/deno.git
synced 2025-08-30 23:38:03 +00:00
fix(ext/node): Define performance.timeOrigin as getter property (#19714)
This commit is contained in:
parent
a3986b641c
commit
686ec85f52
2 changed files with 19 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue