Skip to content

Commit 0fd7932

Browse files
scagoodaladdin-add
authored andcommitted
feat: Add perf_hooks.performance to unsupported
1 parent 37c6bf1 commit 0fd7932

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

lib/unsupported-features/node-builtins-modules/perf_hooks.js

+30-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,35 @@ const { READ } = require("@eslint-community/eslint-utils")
44

55
/** @type {import('../types.js').SupportVersionTraceMap} */
66
const perf_hooks = {
7-
performance: { [READ]: { supported: ["8.5.0"] } },
7+
performance: {
8+
[READ]: { supported: ["8.5.0"] },
9+
clearMarks: { [READ]: { supported: ["8.5.0"] } },
10+
clearMeasures: { [READ]: { supported: ["16.7.0"] } },
11+
clearResourceTimings: { [READ]: { supported: ["18.2.0", "v16.17.0"] } },
12+
eventLoopUtilization: { [READ]: { supported: ["14.10.0", "12.19.0"] } },
13+
getEntries: { [READ]: { supported: ["16.7.0"] } },
14+
getEntriesByName: { [READ]: { supported: ["16.7.0"] } },
15+
getEntriesByType: { [READ]: { supported: ["16.7.0"] } },
16+
mark: { [READ]: { supported: ["8.5.0"] } },
17+
markResourceTiming: { [READ]: { supported: ["8.2.0", "16.17.0"] } },
18+
measure: { [READ]: { supported: ["8.5.0"] } },
19+
nodeTiming: {
20+
[READ]: { supported: ["8.5.0"] },
21+
bootstrapComplete: { [READ]: { supported: ["8.5.0"] } },
22+
environment: { [READ]: { supported: ["8.5.0"] } },
23+
idleTime: { [READ]: { supported: ["14.10.0", "12.19.0"] } },
24+
loopExit: { [READ]: { supported: ["8.5.0"] } },
25+
loopStart: { [READ]: { supported: ["8.5.0"] } },
26+
nodeStart: { [READ]: { supported: ["8.5.0"] } },
27+
v8Start: { [READ]: { supported: ["8.5.0"] } },
28+
},
29+
now: { [READ]: { supported: ["8.5.0"] } },
30+
onresourcetimingbufferfull: { [READ]: { supported: ["18.8.0"] } },
31+
setResourceTimingBufferSize: { [READ]: { supported: ["18.8.0"] } },
32+
timeOrigin: { [READ]: { supported: ["8.5.0"] } },
33+
timerify: { [READ]: { supported: ["8.5.0"] } },
34+
toJSON: { [READ]: { supported: ["16.1.0"] } },
35+
},
836
createHistogram: { [READ]: { supported: ["15.9.0", "14.18.0"] } },
937
monitorEventLoopDelay: { [READ]: { supported: ["11.10.0"] } },
1038
PerformanceEntry: { [READ]: { supported: ["8.5.0"] } },
@@ -16,7 +44,7 @@ const perf_hooks = {
1644
PerformanceObserver: { [READ]: { supported: ["8.5.0"] } },
1745
PerformanceObserverEntryList: { [READ]: { supported: ["8.5.0"] } },
1846
Histogram: { [READ]: { supported: ["11.10.0"] } },
19-
IntervalHistogram: { [READ]: { supported: ["8.5.0"] } },
47+
IntervalHistogram: { [READ]: { supported: ["11.10.0"] } },
2048
RecordableHistogram: { [READ]: { supported: ["15.9.0", "14.18.0"] } },
2149
}
2250

0 commit comments

Comments
 (0)