if (err) {
if (callback) callback(err);
} else {
- // leave pos undefined to allow reads on unseekable devices
- readAll(fd, undefined, "", encoding, callback);
+ // leave pos null to allow reads on unseekable devices
+ readAll(fd, null, "", encoding, callback);
}
});
};
var fd = binding.open(path, process.O_RDONLY, 0666);
var content = '';
- var pos; // leave undefined to allow reads on unseekable devices
+ var pos = null; // leave null to allow reads on unseekable devices
var r;
while ((r = binding.read(fd, 4*1024, pos, encoding)) && r[0]) {