diff options
Diffstat (limited to 'deps/v8/src/debug-delay.js')
-rw-r--r-- | deps/v8/src/debug-delay.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/deps/v8/src/debug-delay.js b/deps/v8/src/debug-delay.js index d9447bd27e..35f7fcd7e4 100644 --- a/deps/v8/src/debug-delay.js +++ b/deps/v8/src/debug-delay.js @@ -1243,6 +1243,8 @@ DebugCommandProcessor.prototype.processDebugJSONRequest = function(json_request) this.threadsRequest_(request, response); } else if (request.command == 'suspend') { this.suspendRequest_(request, response); + } else if (request.command == 'version') { + this.versionRequest_(request, response); } else { throw new Error('Unknown command "' + request.command + '" in request'); } @@ -1911,11 +1913,17 @@ DebugCommandProcessor.prototype.threadsRequest_ = function(request, response) { DebugCommandProcessor.prototype.suspendRequest_ = function(request, response) { - // TODO(peter.rybin): probably we need some body field here. response.running = false; }; +DebugCommandProcessor.prototype.versionRequest_ = function(request, response) { + response.body = { + V8Version: %GetV8Version() + } +}; + + // Check whether the previously processed command caused the VM to become // running. DebugCommandProcessor.prototype.isRunning = function() { |