summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/webappapis/structured-clone/structured-clone.any.js
blob: 1358a71fc03d4e06fe8ae2701fc647d4892e9e5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// META: title=structuredClone() tests
// META: script=/common/sab.js
// META: script=/html/webappapis/structured-clone/structured-clone-battery-of-tests.js
// META: script=/html/webappapis/structured-clone/structured-clone-battery-of-tests-with-transferables.js
// META: script=/html/webappapis/structured-clone/structured-clone-battery-of-tests-harness.js

runStructuredCloneBatteryOfTests({
  structuredClone: (obj, transfer) => {
    return new Promise(resolve => {
      resolve(self.structuredClone(obj, { transfer }));
    });
  },
  hasDocument: typeof document !== "undefined",
});