parent
52c2988f16
commit
8a729270c1
@ -438,7 +438,7 @@ Client.prototype.listbreakpoints = function(cb) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Client.prototype.setBreakpoint = function(req, cb) {
|
Client.prototype.setBreakpoint = function(req, cb) {
|
||||||
var req = {
|
req = {
|
||||||
command: 'setbreakpoint',
|
command: 'setbreakpoint',
|
||||||
arguments: req
|
arguments: req
|
||||||
};
|
};
|
||||||
|
@ -303,7 +303,7 @@ exports.execFile = function(file /* args, options, callback */) {
|
|||||||
|
|
||||||
|
|
||||||
var spawn = exports.spawn = function(file, args, options) {
|
var spawn = exports.spawn = function(file, args, options) {
|
||||||
var args = args ? args.slice(0) : [];
|
args = args ? args.slice(0) : [];
|
||||||
args.unshift(file);
|
args.unshift(file);
|
||||||
|
|
||||||
var env = (options ? options.env : null) || process.env;
|
var env = (options ? options.env : null) || process.env;
|
||||||
|
@ -608,7 +608,7 @@ OutgoingMessage.prototype.write = function(chunk, encoding) {
|
|||||||
if (this.chunkedEncoding) {
|
if (this.chunkedEncoding) {
|
||||||
if (typeof(chunk) === 'string') {
|
if (typeof(chunk) === 'string') {
|
||||||
len = Buffer.byteLength(chunk, encoding);
|
len = Buffer.byteLength(chunk, encoding);
|
||||||
var chunk = len.toString(16) + CRLF + chunk + CRLF;
|
chunk = len.toString(16) + CRLF + chunk + CRLF;
|
||||||
ret = this._send(chunk, encoding);
|
ret = this._send(chunk, encoding);
|
||||||
} else {
|
} else {
|
||||||
// buffer
|
// buffer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user