diff options
author | Felix Geisendörfer <felix@debuggable.com> | 2010-04-20 00:22:59 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-04-27 17:27:34 -0700 |
commit | 76f98c27de4564fcefee83878f525a9a66940a0e (patch) | |
tree | abdd0162bfcaf357f29e91b12fc378634bab82e4 /test/fixtures/echo.js | |
parent | f6185516941c486c5abc8c856185495070a734d9 (diff) | |
download | android-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.js | 4 |
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(); }); |