sys.puts should not kill the process when giving it undefined

v0.7.4-release
Friedemann Altrock 2009-11-28 12:15:37 +01:00 committed by Ryan Dahl
parent aa42c6790d
commit 1107a1bd1e
1 changed files with 3 additions and 3 deletions

View File

@ -3,15 +3,15 @@ exports.print = function (x) {
};
exports.puts = function (x) {
process.stdio.write(x.toString() + "\n");
process.stdio.write(x + "\n");
};
exports.debug = function (x) {
process.stdio.writeError("DEBUG: " + x.toString() + "\n");
process.stdio.writeError("DEBUG: " + x + "\n");
};
exports.error = function (x) {
process.stdio.writeError(x.toString() + "\n");
process.stdio.writeError(x + "\n");
};
/**