rem: stream.init(file, 0x04 | 0x08 | 0x20, 664, 0); return stream; 
add: stream.init(file, 0x04 | 0x08 | 0x20, 0664, 0); if (stream) return stream; else throw "firebug-services.js getDumpStream FAILED to get stream for TmpD/fbug"; 
context: function getDumpStream(){    try    {        // OS tmp (e.g., /tmp on linux, C:\Documents and Settings\your userid\Local Settings\Temp on windows)        var file = Components.classes["@mozilla.org/file/directory_service;1"]            .getService(CI("nsIProperties"))            .get("TmpD", CI("nsIFile"));        file.append("fbug");        if ( !file.exists() )            file.create(CI("nsIFile").DIRECTORY_TYPE, 0776);        file.append("firebug-service-dump.txt");        //file.createUnique(CI("nsIFile").NORMAL_FILE_TYPE, 0666);        var stream = CC("@mozilla.org/network/file-output-stream;1").createInstance(CI("nsIFileOutputStream"));        stream.init(file, 0x04 | 0x08 | 0x20, 664, 0); // write, create, truncate        return stream;    }    catch (exc)    {        ERROR("createDumpStream failed "+exc);    }}
meta: 7450	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7450/57be5cc0d05af01592ebc9354c9dd14cffcbf7de/firebug-service.js/clean/extension/components/firebug-service.js