feat(js-sandbox): expose atob & btoa functions for Node.js (#3724)
Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user