1
0
Fork 0
firefox/testing/web-platform/tests/html/webappapis/structured-clone/structured-clone.any.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

14 lines
591 B
JavaScript

// 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",
});