aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-10-11 16:06:40 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-10-18 13:12:50 -0700
commitd77ce4b9989d143c7b5ab7640bd6c0cbe261e458 (patch)
treec7600e09b17b448d9bb8932246e4ebd81f3edaeb /lib
parentd2698d182271c77bc5bca44a9cee625d9372301f (diff)
downloadandroid-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.js3
-rw-r--r--lib/util.js4
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');
}
};