summaryrefslogtreecommitdiff
path: root/test/fixtures/echo.js
diff options
context:
space:
mode:
authorFelix Geisendörfer <felix@debuggable.com>2010-04-20 00:22:59 +0200
committerRyan Dahl <ry@tinyclouds.org>2010-04-27 17:27:34 -0700
commit76f98c27de4564fcefee83878f525a9a66940a0e (patch)
treeabdd0162bfcaf357f29e91b12fc378634bab82e4 /test/fixtures/echo.js
parentf6185516941c486c5abc8c856185495070a734d9 (diff)
downloadandroid-node-v8-76f98c27de4564fcefee83878f525a9a66940a0e.tar.gz
android-node-v8-76f98c27de4564fcefee83878f525a9a66940a0e.tar.bz2
android-node-v8-76f98c27de4564fcefee83878f525a9a66940a0e.zip
Get rid of coupling for stdout
Diffstat (limited to 'test/fixtures/echo.js')
-rw-r--r--test/fixtures/echo.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fixtures/echo.js b/test/fixtures/echo.js
index 60f3b614a0..4a963c9142 100644
--- a/test/fixtures/echo.js
+++ b/test/fixtures/echo.js
@@ -5,9 +5,9 @@ print("hello world\r\n");
var stdin = process.openStdin();
stdin.addListener("data", function (data) {
- process.stdout.write(data);
+ process.stdout.write(data.toString());
});
stdin.addListener("end", function () {
- process.stdout.close();
+ process.stdout.end();
});