projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa42c67
)
sys.puts should not kill the process when giving it undefined
author
Friedemann Altrock
<frodenius@gmail.com>
Sat, 28 Nov 2009 11:15:37 +0000
(12:15 +0100)
committer
Ryan Dahl
<ry@tinyclouds.org>
Sat, 28 Nov 2009 19:56:47 +0000
(20:56 +0100)
lib/sys.js
patch
|
blob
|
history
diff --git
a/lib/sys.js
b/lib/sys.js
index
dbdd21b
..
da749db
100644
(file)
--- 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");
};
/**