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:
4594408
)
Coerce each argument to a String before attempting to print it via sys.print
author
Ben Lowery
<ben@blowery.org>
Tue, 15 Jun 2010 19:16:08 +0000
(15:16 -0400)
committer
Ryan Dahl
<ry@tinyclouds.org>
Tue, 15 Jun 2010 21:44:09 +0000
(14:44 -0700)
lib/sys.js
patch
|
blob
|
history
diff --git
a/lib/sys.js
b/lib/sys.js
index
dce1971
..
23b32f4
100644
(file)
--- a/
lib/sys.js
+++ b/
lib/sys.js
@@
-3,7
+3,7
@@
var events = require('events');
exports.print = function () {
for (var i = 0, len = arguments.length; i < len; ++i) {
- process.stdout.write(
arguments[i]
);
+ process.stdout.write(
String(arguments[i])
);
}
};