summaryrefslogtreecommitdiff
path: root/test/simple/test-fs-write-stream.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-09-16 19:04:09 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-09-16 19:04:09 -0700
commitbbbcd1fee0a85fb21c6a3206760f4b24d545746e (patch)
tree327880c6dd620f5c48c1e38369a93259395c1089 /test/simple/test-fs-write-stream.js
parent6da0593162dbc861d32c83b38e083dbfd2df870d (diff)
downloadnode-new-bbbcd1fee0a85fb21c6a3206760f4b24d545746e.tar.gz
Safe constructors for fs.ReadStream and fs.WriteStream
Diffstat (limited to 'test/simple/test-fs-write-stream.js')
-rw-r--r--test/simple/test-fs-write-stream.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/simple/test-fs-write-stream.js b/test/simple/test-fs-write-stream.js
index 6679536f50..14ad62e0ba 100644
--- a/test/simple/test-fs-write-stream.js
+++ b/test/simple/test-fs-write-stream.js
@@ -7,7 +7,7 @@ var path = require('path'),
var file = path.join(common.fixturesDir, "write.txt");
(function() {
- var stream = fs.createWriteStream(file),
+ var stream = fs.WriteStream(file),
_fs_close = fs.close;
fs.close = function(fd) {