I've got a lib for easy snadboxing (and replace manual messaging with exporting the given functions directly into the sandbox):
https://github.com/asvd/jailed
(Not sure if reinit of a sandbox is necessary upon each evaluation. What about simply masking self and postMessage with local vars as null (before evaluating the code)?
self
postMessage
I've got a lib for easy snadboxing (and replace manual messaging with exporting the given functions directly into the sandbox):
https://github.com/asvd/jailed
(Not sure if reinit of a sandbox is necessary upon each evaluation. What about simply masking
self
andpostMessage
with local vars as null (before evaluating the code)?