Skip to content

Commit

Permalink
test: mock structuredClone for WebCryptoAPI WPTs
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Mar 31, 2023
1 parent c7c5011 commit 5b9738a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/wpt/test-webcrypto.js
Expand Up @@ -13,6 +13,8 @@ runner.setFlags(['--experimental-global-webcrypto']);

runner.setInitScript(`
global.location = {};
const { serialize, deserialize } = require('v8');
global.structuredClone = (value) => deserialize(serialize(value));
`);

runner.runJsTests();

0 comments on commit 5b9738a

Please sign in to comment.