-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reuse compiled code #20
Comments
Please provide sample code on how you are using different contexts |
for example
|
I found that after first run This workaround help me
|
Just bumped into this problem. The code:
Executed with:
So SandboxJS doesn't work well with hoisted functions? |
After attempt use compiled code with different contexts I catching error
ReferenceError: plus is not defined
and my code
function plus(n,u){return n+u};function minus(n,u){return n-u};var a=plus(value,10);return minus(a,5);
.In documentation I didn't see nothing about this restriction.
So its bug on not?
The text was updated successfully, but these errors were encountered: