context: function pickSaveAs (title, typeList, defaultFile, defaultDir){    if (!defaultDir && "lastSaveAsDir" in futils)        defaultDir = futils.lastSaveAsDir;        var picker = futils.getPicker (defaultDir, typeList,                                    {defaultString: defaultFile});    picker.init (window, title ? title : futils.MSG_SAVE_AS,                 Components.interfaces.nsIFilePicker.modeSave);    var reason;        try    {        reason = picker.show();    }    catch (ex)    {        dd ("caught exception from file picker: " + ex);    }        var obj = new Object();        obj.reason = reason;    obj.picker = picker;        if (reason != PICK_CANCEL)    {        obj.file = picker.file;        futils.lastSaveAsDir = picker.file.parent;    }    else    {        obj.file = null;    }    return obj;}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/703717eb72f3378c625c0fefe679e646d1c5b0ff/file-utils.js/buggy/js/lib/file-utils.js