rem: while (!fileSpec.eof()) 
add: while (!inputStream.eof()) 
context: function EditorExecuteScript(fileSpec){  fileSpec.openStreamForReading();  var buf         = { value:null };  var tmpBuf      = { value:null };  var didTruncate = { value:false };  var lineNum     = 0;  var ex;  // Log files can be quite huge, so read in a line  // at a time and execute it:  while (!fileSpec.eof())  {    buf.value         = "";    didTruncate.value = true;    // Keep looping until we get a complete line of    // text, or we hit the end of file:    while (didTruncate.value && !fileSpec.eof())    {      didTruncate.value = false;      fileSpec.readLine(tmpBuf, 1024, didTruncate);      buf.value += tmpBuf.value;      // XXX Need to null out tmpBuf.value to avoid crashing      // XXX in some JavaScript string allocation method.      // XXX This is probably leaking the buffer allocated      // XXX by the readLine() implementation.      tmpBuf.value = null;    }    ++lineNum;    try       { eval(buf.value); }    catch(ex) { dump("Playback ERROR: Line " + lineNum + "  " + ex + "\n"); return; }  }  buf.value = null;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a0dda75954d01a40f89595c1a6fc21631a023e35/EditorCommandsDebug.js/clean/editor/ui/composer/content/EditorCommandsDebug.js