rem: listings[i]   = files.getNext().QueryInterface(Components.interfaces.nsILocalFile).path; i++; 
add: listings.push(files.getNext().QueryInterface(Components.interfaces.nsILocalFile).path); 
context: readDir : function (dirPath) {  if(!dirPath){  dump('Please enter a dir path as arg\n');  return null;  }  if(!this.exists(dirPath)){  dump("Sorry, directory "+dirPath+" doesn't exist\n\n");  return;  }  var file      = new FilePath(dirPath);  if(!file.isDirectory()){  dump("Sorry, "+dirPath+" is not a directory\n\n");  return;  }  var files     = file.directoryEntries;  var listings  = new Array();  i=0;  while(files.hasMoreElements()){  listings[i]   = files.getNext().QueryInterface(Components.interfaces.nsILocalFile).path;  i++;  }  return eval(listings.toSource());},
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1b3694a9cdea60107c53fb145a06e4d7b407ca8e/io.js/clean/xpcom/tests/utils/io.js