PR-URL: https://github.com/nodejs/node/pull/45139 Fixes: https://github.com/nodejs/node/issues/39015 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
13 lines
246 B
JavaScript
13 lines
246 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
const { WPTRunner } = require('../common/wpt');
|
|
|
|
const runner = new WPTRunner('FileAPI/file');
|
|
|
|
runner.setInitScript(`
|
|
const { File } = require('buffer');
|
|
globalThis.File = File;
|
|
`);
|
|
|
|
runner.runJsTests();
|