mirror of https://github.com/nodejs/node.git
15 lines
335 B
JavaScript
15 lines
335 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
const { WPTRunner } = require('../common/wpt');
|
|
|
|
const runner = new WPTRunner('hr-time');
|
|
|
|
runner.setInitScript(`
|
|
const { performance, PerformanceObserver } = require('perf_hooks');
|
|
global.performance = performance;
|
|
global.PerformanceObserver = PerformanceObserver;
|
|
`);
|
|
|
|
runner.runJsTests();
|