diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-10-11 16:06:40 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-10-18 13:12:50 -0700 |
commit | d77ce4b9989d143c7b5ab7640bd6c0cbe261e458 (patch) | |
tree | c7600e09b17b448d9bb8932246e4ebd81f3edaeb /lib | |
parent | d2698d182271c77bc5bca44a9cee625d9372301f (diff) | |
download | android-node-v8-d77ce4b9989d143c7b5ab7640bd6c0cbe261e458.tar.gz android-node-v8-d77ce4b9989d143c7b5ab7640bd6c0cbe261e458.tar.bz2 android-node-v8-d77ce4b9989d143c7b5ab7640bd6c0cbe261e458.zip |
Fixes #1860. Remove process.writeError
Breaks a few tests in "make test-message"
Diffstat (limited to 'lib')
-rw-r--r-- | lib/console.js | 3 | ||||
-rw-r--r-- | lib/util.js | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/console.js b/lib/console.js index 7c6134a47e..ac8912f828 100644 --- a/lib/console.js +++ b/lib/console.js @@ -19,7 +19,6 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -var writeError = process.writeError; var util = require('util'); exports.log = function() { @@ -31,7 +30,7 @@ exports.info = exports.log; exports.warn = function() { - writeError(util.format.apply(this, arguments) + '\n'); + process.stderr.write(util.format.apply(this, arguments) + '\n'); }; diff --git a/lib/util.js b/lib/util.js index 07d1421399..a13a70d3d8 100644 --- a/lib/util.js +++ b/lib/util.js @@ -72,13 +72,13 @@ exports.puts = function() { exports.debug = function(x) { - process.writeError('DEBUG: ' + x + '\n'); + process.stderr.write('DEBUG: ' + x + '\n'); }; var error = exports.error = function(x) { for (var i = 0, len = arguments.length; i < len; ++i) { - process.writeError(arguments[i] + '\n'); + process.stderr.write(arguments[i] + '\n'); } }; |