Skip to content

Commit

Permalink
sys.puts should not kill the process when giving it undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
fwg authored and ry committed Nov 28, 2009
1 parent aa42c67 commit 1107a1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/sys.js
Expand Up @@ -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");
};

/**
Expand Down

0 comments on commit 1107a1b

Please sign in to comment.