summaryrefslogtreecommitdiff
path: root/lib/sys.js
diff options
context:
space:
mode:
authorBen Lowery <ben@blowery.org>2010-06-15 15:16:08 -0400
committerRyan Dahl <ry@tinyclouds.org>2010-06-15 14:44:09 -0700
commitf3cd7bbe778bb69251637d49a33ddacc0973e973 (patch)
tree71d3e727cb126ebe9147a6aba860d0ab458ce6a1 /lib/sys.js
parent459440842f7b2fd91b2c9e33129eafd7b8db9004 (diff)
downloadnodejs-f3cd7bbe778bb69251637d49a33ddacc0973e973.tar.gz
nodejs-f3cd7bbe778bb69251637d49a33ddacc0973e973.tar.bz2
nodejs-f3cd7bbe778bb69251637d49a33ddacc0973e973.zip
Coerce each argument to a String before attempting to print it via sys.print
Diffstat (limited to 'lib/sys.js')
-rw-r--r--lib/sys.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sys.js b/lib/sys.js
index dce1971f2..23b32f400 100644
--- a/lib/sys.js
+++ b/lib/sys.js
@@ -3,7 +3,7 @@ var events = require('events');
exports.print = function () {
for (var i = 0, len = arguments.length; i < len; ++i) {
- process.stdout.write(arguments[i]);
+ process.stdout.write(String(arguments[i]));
}
};