Permalink
Browse files

Coerce each argument to a String before attempting to print it via sy…

…s.print
  • Loading branch information...
1 parent 4594408 commit f3cd7bbe778bb69251637d49a33ddacc0973e973 @blowery blowery committed with ry Jun 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sys.js
View
@@ -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]));
}
};

0 comments on commit f3cd7bb

Please sign in to comment.