From: Friedemann Altrock Date: Sat, 28 Nov 2009 11:15:37 +0000 (+0100) Subject: sys.puts should not kill the process when giving it undefined X-Git-Tag: v0.1.21~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1107a1bd1e367d3056b8c3975c2026b7402e9f61;p=platform%2Fupstream%2Fnodejs.git sys.puts should not kill the process when giving it undefined --- diff --git a/lib/sys.js b/lib/sys.js index dbdd21b..da749db 100644 --- a/lib/sys.js +++ b/lib/sys.js @@ -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"); }; /**