diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-05-16 05:16:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 05:16:24 +0200 |
commit | 78fbc3f3f695610083d07a55ef2a116e0bf04a10 (patch) | |
tree | 8c09614e023aa9f46a16b591dced4446f484b9eb /ext/node/polyfills/02_init.js | |
parent | ab9a17eeee01a3b04fac2bf583c812179f410c91 (diff) |
fix(npm): add performance.markResourceTiming sham (#19123)
This commit shams "performance.markResourceTiming" API by
using a noop function. It is done to provide compatibility with
"npm:undici" package. We should look into actually implementing
this API properly, but I wanted to unblock support for "undici" and
"astro" for now.
Ref https://github.com/denoland/deno/issues/19065
Diffstat (limited to 'ext/node/polyfills/02_init.js')
-rw-r--r-- | ext/node/polyfills/02_init.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/node/polyfills/02_init.js b/ext/node/polyfills/02_init.js index b8070d50f..3aef00060 100644 --- a/ext/node/polyfills/02_init.js +++ b/ext/node/polyfills/02_init.js @@ -34,6 +34,7 @@ function initialize( nodeGlobals.setImmediate = nativeModuleExports["timers"].setImmediate; nodeGlobals.setInterval = nativeModuleExports["timers"].setInterval; nodeGlobals.setTimeout = nativeModuleExports["timers"].setTimeout; + nodeGlobals.performance = nativeModuleExports["perf_hooks"].performance; // add a hidden global for the esm code to use in order to reliably // get node's globalThis |