joyent/node — pull request #2865 by eboyjr (2012-03-03 17:16:34+00:00)
Title: Update documentation to not be misleading. It's not possible to safely...

...run untrusted code.

There was talk of a Prison module for this purpose in ~0.7+. This is only 1 single example of code which can be called with vm.runInNewContext, and exit the process.

var Func = (function() { return arguments.callee.caller })().caller.caller.caller.constructor; var fn = new Func('return process'); var process = fn(); process.exit()