Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 11 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /html/webappapis/structured-clone/structured-clone.any.html - WPT Dashboard Interop Dashboard
- /html/webappapis/structured-clone/structured-clone.any.worker.html - WPT Dashboard Interop Dashboard
// 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",
});