node/test/wpt/test-structured-clone.js
Daeyeon Jeong b491504d77
test: enable the WPT for structuredClone
So far, all `structuredClone` tests have been just skipped.

Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/45482
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
2022-11-21 15:20:41 -05:00

13 lines
266 B
JavaScript

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