rem: 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; 
add: return rv; 
context: function pickSaveAs (title, typeList, defaultFile, defaultDir, defaultExt){    if (!defaultDir && "lastSaveAsDir" in futils)        defaultDir = futils.lastSaveAsDir;    var picker = futils.getPicker (defaultDir, typeList,                                   {defaultString: defaultFile,                                    defaultExtension: defaultExt});    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: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/6f2b2ced26d8011e6eed8b3950183a863719ed7c/file-utils.js/buggy/js/lib/file-utils.js