rem: while(files.hasMoreElements()){ 
add: while(files.hasMoreElements()) 
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();  while(files.hasMoreElements()){  listings.push(files.getNext().QueryInterface(Components.interfaces.nsILocalFile).path);  }  return listings;},
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/1008dafcdbbc58ca9ce98e9ed3ab9283188aa22a/io.js/buggy/xpcom/tests/utils/io.js