mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
11e37e0f79
PR-URL: https://github.com/nodejs/node/pull/46796 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
13 lines
231 B
JavaScript
13 lines
231 B
JavaScript
'use strict';
|
|
|
|
const { WPTRunner } = require('../common/wpt');
|
|
|
|
const runner = new WPTRunner('hr-time');
|
|
|
|
runner.setInitScript(`
|
|
self.GLOBAL.isWorker = () => false;
|
|
`);
|
|
runner.pretendGlobalThisAs('Window');
|
|
|
|
runner.runJsTests();
|