rem: this.outputStream = 
add: this.outputStream = 
context: function LocalFile(file, mode, perms, tmp){    const classes = Components.classes;    const interfaces = Components.interfaces;    const LOCALFILE_CTRID = "@mozilla.org/file/local;1";    const FILEIN_CTRID = "@mozilla.org/network/file-input-stream;1";    const FILEOUT_CTRID = "@mozilla.org/network/file-output-stream;1";    const SCRIPTSTREAM_CTRID = "@mozilla.org/scriptableinputstream;1";        const nsIFile = interfaces.nsIFile;    const nsILocalFile = interfaces.nsILocalFile;    const nsIFileOutputStream = interfaces.nsIFileOutputStream;    const nsIFileInputStream = interfaces.nsIFileInputStream;    const nsIScriptableInputStream = interfaces.nsIScriptableInputStream;        if (typeof perms == "undefined")        perms = 0666 & ~futils.umask;    if (typeof mode == "string")    {        switch (mode)        {            case ">":                mode = MODE_WRONLY | MODE_CREATE | MODE_TRUNCATE;                break;            case ">>":                mode = MODE_WRONLY | MODE_CREATE | MODE_APPEND;                break;            case "<":                mode = MODE_RDONLY;                break;            default:                throw "Invalid mode ``" + mode + "''";        }    }            if (typeof file == "string")    {        this.localFile = new nsLocalFile(file);    }    else if (file instanceof nsILocalFile)    {        this.localFile = file;    }    else    {        throw "bad type for argument |file|.";    }    this.path = this.localFile.path;        if (mode & (MODE_WRONLY | MODE_RDWR))    {        this.outputStream =             classes[FILEOUT_CTRID].createInstance(nsIFileOutputStream);        this.outputStream.init(this.localFile, mode, perms, 0);    }        if (mode & (MODE_RDONLY | MODE_RDWR))    {        this.baseInputStream =             classes[FILEIN_CTRID].createInstance(nsIFileInputStream);        this.baseInputStream.init(this.localFile, mode, perms, tmp);        this.inputStream =            classes[SCRIPTSTREAM_CTRID].createInstance(nsIScriptableInputStream);        this.inputStream.init(this.baseInputStream);    }    }
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/703717eb72f3378c625c0fefe679e646d1c5b0ff/file-utils.js/buggy/js/lib/file-utils.js