joyent/node — pull request #4115 by apaprocki (2012-10-11 02:01:13+00:00)
Title: vm: add support for timeout argument

Added a watchdog class which executes a timer in a separate event loop in
a separate thread that will terminate v8 execution if it expires.

Added timeout argument to functions in vm module which use the watchdog
if a non-zero timeout is specified.