lib, src: add vm.runInDebugContext()
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 22 Aug 2014 13:09:24 +0000 (15:09 +0200)
committerTrevor Norris <trev.norris@gmail.com>
Tue, 16 Sep 2014 19:28:47 +0000 (12:28 -0700)
commit21e60643b0795fe7b6a46ff29d73df60e6a7c9f5
tree9eabb3502881497dcb7766179a5d2ee4647a03bd
parent174f7d2820dcb12f1b4b511840416a03cd65b9cf
lib, src: add vm.runInDebugContext()

Compiles and executes source code in V8's debugger context.  Provides
a programmatic way to get access to the debug object by executing:

    var Debug = vm.runInDebugContext('Debug');

Fixes #7886.

Reviewed-by: Trevor Norris <trev.norris@gmail.com>
doc/api/vm.markdown
lib/vm.js
src/node_contextify.cc
test/simple/test-vm-debug-context.js [new file with mode: 0644]