Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Update documentation to not be misleading. It's not possible to safely... #2865

wants to merge 1 commit into


None yet
3 participants

dsamarin commented Mar 3, 2012

...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()


bnoordhuis commented May 1, 2012

Thanks, I'll merge it but can you sign the CLA and wrap lines at 80 characters?

@eboyjr your PR is still waiting for an updated commit message

@benverhees Thanks, but I forfeit. Maybe someone else can come along and take care of it?


bnoordhuis commented Feb 20, 2013

Closing then. The caveats are reasonably well documented by now.

@bnoordhuis bnoordhuis closed this Feb 20, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment