From 1107a1bd1e367d3056b8c3975c2026b7402e9f61 Mon Sep 17 00:00:00 2001 From: Friedemann Altrock Date: Sat, 28 Nov 2009 12:15:37 +0100 Subject: [PATCH] sys.puts should not kill the process when giving it undefined --- lib/sys.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"); }; /** -- 2.7.4