diff options
Diffstat (limited to 'src/bun.js/perf_hooks.exports.js')
-rw-r--r-- | src/bun.js/perf_hooks.exports.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/bun.js/perf_hooks.exports.js b/src/bun.js/perf_hooks.exports.js new file mode 100644 index 000000000..b49e2fc4a --- /dev/null +++ b/src/bun.js/perf_hooks.exports.js @@ -0,0 +1,27 @@ +export var performance = globalThis.performance; + +export class PerformanceObserver { + constructor() { + throw new Error("PerformanceEntry is not implemented yet"); + } +} + +export class PerformanceEntry { + constructor() { + throw new Error("PerformanceEntry is not implemented yet"); + } +} +export class PerformanceNodeTiming { + constructor() { + throw new Error( + "PerformanceNodeTiming is not supported in this environment." + ); + } +} + +export default { + performance, + PerformanceEntry, + PerformanceEntry, + PerformanceNodeTiming, +}; |