blob: fb5929c570a5b4fe28be21476c203ee5f3135b4a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Hardcoded module "node:perf_hooks"
import { throwNotImplemented } from "../shared";
export var performance = globalThis.performance;
export class PerformanceObserver {
constructor() {
throwNotImplemented("PerformanceObserver");
}
}
export class PerformanceEntry {
constructor() {
throwNotImplemented("PerformanceEntry");
}
}
export class PerformanceNodeTiming {
constructor() {
throw new Error("PerformanceNodeTiming is not supported in this environment.");
}
}
export default {
performance,
PerformanceEntry,
PerformanceNodeTiming,
[Symbol.for("CommonJS")]: 0,
};
|