diff --git a/libs/plugins-runtime/src/lib/create-sandbox.ts b/libs/plugins-runtime/src/lib/create-sandbox.ts index 9d03f9d..70c0248 100644 --- a/libs/plugins-runtime/src/lib/create-sandbox.ts +++ b/libs/plugins-runtime/src/lib/create-sandbox.ts @@ -118,8 +118,8 @@ export function createSandbox( // Window properties console: ses.harden(window.console), devicePixelRatio: ses.harden(window.devicePixelRatio), - atob: ses.harden(window.atob), - btoa: ses.harden(window.btoa), + atob: ses.harden(window.atob.bind(null)), + btoa: ses.harden(window.btoa.bind(null)), structuredClone: ses.harden(window.structuredClone), };