3 ms·
> The script is running in the VM on the api service and does not provide any IO functions. Thank you for answering! but I am still not sure how can you preven
by avinassh 4y ago
> The script is running in the VM on the api service and does not provide any IO functions.
Thank you for answering! but I am still not sure how can you prevent someone importing io lib in go or js and writing to a file.
> Just like the functions provided by the playground page, users can fill in any code, so I must ensure that it cannot write functions that can harm the server.
can you tell me more on how are you ensuring this?
- vanishs 4y agopython, Lua and JS These functions are implemented by these packages: github.com/dop251/goja github.com/yuin/gopher-lua go.starlark.net Go scripts (programs) are not subject to any restrictions. So there is no Go script support in the playground(debug)