perf_hooks: fix performance timeline wpt failures

PR-URL: https://github.com/nodejs/node/pull/39532
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
This commit is contained in:
legendecas 2021-07-26 23:16:00 +08:00 committed by James M Snell
parent 317e71b142
commit a27d245698
No known key found for this signature in database
GPG key ID: 7341B15C070877AC
4 changed files with 49 additions and 10 deletions

View file

@ -9,7 +9,10 @@ const {
} = internalBinding('performance');
const { PerformanceEntry } = require('internal/perf/performance_entry');
const { PerformanceObserver } = require('internal/perf/observe');
const {
PerformanceObserver,
PerformanceObserverEntryList,
} = require('internal/perf/observe');
const {
PerformanceMark,
PerformanceMeasure,
@ -27,6 +30,7 @@ module.exports = {
PerformanceMark,
PerformanceMeasure,
PerformanceObserver,
PerformanceObserverEntryList,
monitorEventLoopDelay,
createHistogram,
performance: new InternalPerformance(),