You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{createSandbox}from'z-sandbox';constsandboxOptions={// default: falseuseStrict: false,// default: trueinheritGlobal: true,// default: []blacklist: ['blacklistContent']};constcontext={blacklistContent: "this content is in the blacklist, you can't get it in the sandbox",hello: 'hello z-sandbox'};constsandbox=createSandbox(context,sandboxOptions);sandbox` // should be undefined console.log(blacklistContent); // should be undefined console.log(window.blacklistContent); // should be undefined console.log(this.blacklistContent); // should be undefined console.log(self.blacklistContent); // should be 'hello z-sandbox' console.log(hello); window.testInject = true; // should be true console.log(window.testInject);`;// should be undefined, falseconsole.log(window.testInject,'testInject'inwindow);