From 8a729270c144f93aaca72f5941c99217fe6e2d67 Mon Sep 17 00:00:00 2001 From: koichik Date: Mon, 31 Oct 2011 00:49:20 +0900 Subject: [PATCH] fix for --harmony_block_scoping Fixes #1969. --- lib/_debugger.js | 2 +- lib/child_process.js | 2 +- lib/http.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/_debugger.js b/lib/_debugger.js index 4404c595d1..1269f56a2b 100644 --- a/lib/_debugger.js +++ b/lib/_debugger.js @@ -438,7 +438,7 @@ Client.prototype.listbreakpoints = function(cb) { }; Client.prototype.setBreakpoint = function(req, cb) { - var req = { + req = { command: 'setbreakpoint', arguments: req }; diff --git a/lib/child_process.js b/lib/child_process.js index fd23b5b571..6e9b689fb0 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -303,7 +303,7 @@ exports.execFile = function(file /* args, options, callback */) { var spawn = exports.spawn = function(file, args, options) { - var args = args ? args.slice(0) : []; + args = args ? args.slice(0) : []; args.unshift(file); var env = (options ? options.env : null) || process.env; diff --git a/lib/http.js b/lib/http.js index 9eb3b50d54..ea5e3e3a3e 100644 --- a/lib/http.js +++ b/lib/http.js @@ -608,7 +608,7 @@ OutgoingMessage.prototype.write = function(chunk, encoding) { if (this.chunkedEncoding) { if (typeof(chunk) === 'string') { 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); } else { // buffer