bugger-v8-client
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -64,3 +64,2 @@ 'use strict'; | ||
DebugClient.prototype._sendRequest = function(command, params, cb) { | ||
debug('_sendRequest %j', command); | ||
return this._rpc.execCommand(command, params).nodeify(cb); | ||
@@ -67,0 +66,0 @@ }; |
@@ -25,4 +25,5 @@ 'use strict'; | ||
RPCStream.prototype.execCommand = function(command, args) { | ||
var seq = ++this._lastSequence; | ||
var obj = { | ||
seq: ++this._lastSequence, | ||
seq: seq, | ||
type: 'request', | ||
@@ -32,4 +33,6 @@ command: command, | ||
}; | ||
debug('[%s] request %j', seq, command); | ||
var resolver = this._pending[obj.seq] = Promise.defer(); | ||
var resolver = this._pending[seq] = Promise.defer(); | ||
resolver.requestArguments = args; | ||
@@ -52,5 +55,5 @@ this.push(obj); | ||
/*jshint camelcase:false */ | ||
debug('response for %s', raw.command); | ||
var seq = raw.request_seq; | ||
debug('[%s] response %j', seq, raw.command); | ||
var resolver = this._pending[seq]; | ||
@@ -60,3 +63,5 @@ delete this._pending[seq]; | ||
if (!raw.success) { | ||
resolver.reject(new Error(raw.message)); | ||
var err = new Error(raw.message); | ||
err.args = resolver.requestArguments; | ||
resolver.reject(err); | ||
} else { | ||
@@ -63,0 +68,0 @@ resolver.resolve(raw); |
@@ -93,7 +93,7 @@ 'use strict'; | ||
reviver(raw.evalFromScript), | ||
new Position( | ||
raw.evalFromLocation && new Position( | ||
raw.evalFromLocation.line, | ||
raw.evalFromLocation.column | ||
), | ||
raw.evalFromFunctionName.value_ | ||
raw.evalFromFunctionName && raw.evalFromFunctionName.value_ | ||
); | ||
@@ -100,0 +100,0 @@ } |
{ | ||
"name": "bugger-v8-client", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Client for v8 debug protocol", | ||
@@ -5,0 +5,0 @@ "main": "lib/bugger-v8-client.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104205
2167