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:
76f98c2
)
Support for FileReadStream.setEncoding
author
Felix Geisendörfer
<felix@debuggable.com>
Tue, 27 Apr 2010 23:16:05 +0000
(
01:16
+0200)
committer
Ryan Dahl
<ry@tinyclouds.org>
Wed, 28 Apr 2010 00:31:04 +0000
(17:31 -0700)
lib/fs.js
patch
|
blob
|
history
diff --git
a/lib/fs.js
b/lib/fs.js
index
75f5112
..
d5d1a20
100644
(file)
--- a/
lib/fs.js
+++ b/
lib/fs.js
@@
-515,6
+515,9
@@
var FileReadStream = fs.FileReadStream = function(path, options) {
};
sys.inherits(FileReadStream, events.EventEmitter);
+FileReadStream.prototype.setEncoding = function(encoding) {
+ this.encoding = encoding;
+};
FileReadStream.prototype._read = function () {
var self = this;