We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 557edc9 commit d465e3fCopy full SHA for d465e3f
reference-implementation/lib/abstract-ops/miscellaneous.js
@@ -22,11 +22,5 @@ exports.CloneAsUint8Array = O => {
22
};
23
24
exports.StructuredTransferOrClone = (value, transferList) => {
25
-console.log(globalThis);
26
-console.log(globalThis.structuredClone);
27
-
28
- if (globalThis.structuredClone)
29
- return globalThis.structuredClone(value, transferList);
30
31
- return JSON.parse(JSON.stringify(value));
+ return globalThis.structuredClone(value, transferList);
32
reference-implementation/run-web-platform-tests.js
@@ -58,6 +58,7 @@ async function main() {
58
}
59
60
61
+ window.structuredClone = structuredClone;
62
window.eval(bundledJS);
63
},
64
filter(testPath) {
0 commit comments