Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit d82c881

Browse files
committed
feat(plugins-runtime): fix atob/btoa methods
1 parent 3954604 commit d82c881

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/plugins-runtime/src/lib/create-sandbox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ export function createSandbox(
118118
// Window properties
119119
console: ses.harden(window.console),
120120
devicePixelRatio: ses.harden(window.devicePixelRatio),
121-
atob: ses.harden(window.atob),
122-
btoa: ses.harden(window.btoa),
121+
atob: ses.harden(window.atob.bind(null)),
122+
btoa: ses.harden(window.btoa.bind(null)),
123123
structuredClone: ses.harden(window.structuredClone),
124124
};
125125

0 commit comments

Comments
 (0)