If you use a simple V8 (that is, not something like node.js), there will be no dangerous functions. JavaScript itself does not have stdlib containing file system functions, etc.
The only thing a malicious user can do is create endless loops, deep recursions, and memory gods.
source share