rem: f = Components.classes["@mozilla.org/file/local;1"]. 
add: var f = Components.classes["@mozilla.org/file/local;1"]. 
context: function getLocalFileFromNativePathOrUrl(aPathOrUrl){  if (aPathOrUrl.substring(0,7) == "file://") {    // if this is a URL, get the file from that    ioSvc = Components.classes["@mozilla.org/network/io-service;1"]      .getService(Components.interfaces.nsIIOService);    // XXX it's possible that using a null char-set here is bad    const fileUrl = ioSvc.newURI(aPathOrUrl, null, null).      QueryInterface(Components.interfaces.nsIFileURL);    return fileUrl.file.clone().      QueryInterface(Components.interfaces.nsILocalFile);  } else {    // if it's a pathname, create the nsILocalFile directly    f = Components.classes["@mozilla.org/file/local;1"].      createInstance(Components.interfaces.nsILocalFile);    f.initWithPath(aPathOrUrl);    return f;  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e475909d238d2f4707aa3c96f3136a843b93d12e/downloads.js/buggy/toolkit/mozapps/downloads/content/downloads.js