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