diff options
author | Friedemann Altrock <frodenius@gmail.com> | 2009-11-28 12:15:37 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2009-11-28 20:56:47 +0100 |
commit | 1107a1bd1e367d3056b8c3975c2026b7402e9f61 (patch) | |
tree | 889dfc8f578942fa9d6ac6042ff5e2f576866d87 /lib/sys.js | |
parent | aa42c6790da8ed2cd2b72051c07f6251fe1724d8 (diff) | |
download | android-node-v8-1107a1bd1e367d3056b8c3975c2026b7402e9f61.tar.gz android-node-v8-1107a1bd1e367d3056b8c3975c2026b7402e9f61.tar.bz2 android-node-v8-1107a1bd1e367d3056b8c3975c2026b7402e9f61.zip |
sys.puts should not kill the process when giving it undefined
Diffstat (limited to 'lib/sys.js')
-rw-r--r-- | lib/sys.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sys.js b/lib/sys.js index dbdd21bf52..da749db8dc 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"); }; /** |