Clean up perf hooks a little

This commit is contained in:
Jarred Sumner
2022-06-22 06:43:21 -07:00
committed by Jarred Sumner
parent e3a00268eb
commit 93d03e5147

View File

@@ -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 class PerformanceNodeTiming {
constructor() {
throw new Error(
"PerformanceNodeTiming is not supported in this environment."
);
}
}
export function PerformanceNodeTiming() {
throw new Error(
"PerformanceNodeTiming is not supported in this environment."
);
}
export default {
performance,
PerformanceEntry,
PerformanceEntry,
PerformanceNodeTiming,
};