diff options
author | 2022-06-22 06:43:21 -0700 | |
---|---|---|
committer | 2022-06-22 06:56:47 -0700 | |
commit | 93d03e5147773fd1da85184e35d2d015fff54aa5 (patch) | |
tree | 4f6fc3a6e47f9a8349b065bb48039626594958f1 | |
parent | e3a00268eb05ec71edd4826d72c61a928a050f6d (diff) | |
download | bun-93d03e5147773fd1da85184e35d2d015fff54aa5.tar.gz bun-93d03e5147773fd1da85184e35d2d015fff54aa5.tar.zst bun-93d03e5147773fd1da85184e35d2d015fff54aa5.zip |
Clean up perf hooks a little
-rw-r--r-- | src/javascript/jsc/perf_hooks.exports.js | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/src/javascript/jsc/perf_hooks.exports.js b/src/javascript/jsc/perf_hooks.exports.js index 200272130..b49e2fc4a 100644 --- a/src/javascript/jsc/perf_hooks.exports.js +++ b/src/javascript/jsc/perf_hooks.exports.js @@ -1,15 +1,27 @@ export var performance = globalThis.performance; -export function PerformanceObserver() { - throw new Error("PerformanceEntry is not implemented yet"); +export class PerformanceObserver { + constructor() { + throw new Error("PerformanceEntry is not implemented yet"); + } } -export function PerformanceEntry() { - throw new Error("PerformanceEntry is not implemented yet"); +export class PerformanceEntry { + constructor() { + throw new Error("PerformanceEntry is not implemented yet"); + } } - -export function PerformanceNodeTiming() { - throw new Error( - "PerformanceNodeTiming is not supported in this environment." - ); +export class PerformanceNodeTiming { + constructor() { + throw new Error( + "PerformanceNodeTiming is not supported in this environment." + ); + } } + +export default { + performance, + PerformanceEntry, + PerformanceEntry, + PerformanceNodeTiming, +}; |