-
Notifications
You must be signed in to change notification settings - Fork 6
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
eval
not in SAFE_GLOBALS
#24
Comments
eval
not in SAFE_GLOBALS as docs stateeval
not in SAFE_GLOBALS
It says the opposite. This library offers a safe alternative to eval. If you start using the native eval, you don't need this library. |
I think you're missing my point. "eval" is listed as a global which is safely made available within the sandbox, along with I want to be able to safely execute code in the sandbox that itself uses https://github.com/nyariv/SandboxJS?tab=readme-ov-file#safe-globals Safe GlobalsFunction |
Hi, nice library!
I had to use
Function
instead ofeval
, as the evaluator would throweval is not defined
. Indeed,eval
is missing from theSAFE_GLOBALS
list:SandboxJS/build/SandboxExec.js
Line 41 in f3168a8
This is odd as the Readme file states
eval
is a "safe global" by default.The text was updated successfully, but these errors were encountered: