Files
node/test/wpt/test-structured-clone.js
Filip Skokan 9ca3cc0f2a test: remove useless require('../common') from WPTs
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>
Backport-PR-URL: https://github.com/nodejs/node/pull/47506
2023-06-20 17:23:50 -03:00

13 lines
244 B
JavaScript

'use strict';
const { WPTRunner } = require('../common/wpt');
const runner = new WPTRunner('html/webappapis/structured-clone');
runner.setInitScript(`
const { File } = require('buffer');
globalThis.File = File;
`);
runner.runJsTests();