Add monkey patch for structured Clone

This commit is contained in:
Cohee
2023-08-25 16:40:43 +03:00
parent 1dd1607b94
commit e34e51226f
8 changed files with 319 additions and 0 deletions

View File

@ -0,0 +1,6 @@
import structuredClone from './index.js';
if (!("structuredClone" in globalThis)) {
console.debug("Monkey-patching structuredClone");
globalThis.structuredClone = structuredClone;
}