mirror of https://github.com/nodejs/node.git
sys.puts should not kill the process when giving it undefined
parent
aa42c6790d
commit
1107a1bd1e
|
@ -3,15 +3,15 @@ exports.print = function (x) {
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.puts = function (x) {
|
exports.puts = function (x) {
|
||||||
process.stdio.write(x.toString() + "\n");
|
process.stdio.write(x + "\n");
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.debug = function (x) {
|
exports.debug = function (x) {
|
||||||
process.stdio.writeError("DEBUG: " + x.toString() + "\n");
|
process.stdio.writeError("DEBUG: " + x + "\n");
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.error = function (x) {
|
exports.error = function (x) {
|
||||||
process.stdio.writeError(x.toString() + "\n");
|
process.stdio.writeError(x + "\n");
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue