feat(js-sandbox): expose atob & btoa functions for Node.js (#3724)

Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>
This commit is contained in:
Florian Metz
2024-02-05 18:42:55 +01:00
committed by GitHub
parent 0ba33ec187
commit 0028f6e878
4 changed files with 95 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ export const runPreRequestScript = (
// Expose pw to the context
context.pw = pw
context.atob = atob
context.btoa = btoa
// Run the pre-request script in the provided context
runInContext(preRequestScript, context)