Browse Source

Coerce each argument to a String before attempting to print it via sys.print

v0.7.4-release
Ben Lowery 15 years ago
committed by Ryan Dahl
parent
commit
f3cd7bbe77
  1. 2
      lib/sys.js

2
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]));
}
};

Loading…
Cancel
Save