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
I think you're missing my point. "eval" is listed as a global which is safely made available within the sandbox, along with Function ctor etc.. I'm talking about the symbols made available within the sandbox to the sandboxed code, which is what the list refers to, right?
I want to be able to safely execute code in the sandbox that itself uses eval. Function instead of eval works fine, so this appears to be a bug or oversight.
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: