rem:   for (var i = 0; i < 5 && "undefined" == typeof(blogFile); ++i) 
add: try 
context: function readBuildLog(exeDir, itemInfo, useUnicode){    if (! fso.FolderExists(exeDir))        return;            var blogDir = exeDir + "\\" + itemInfo.name;        if (! fso.FolderExists(blogDir))        return;            var blogFilePath = blogDir + "\\" + buildlogFile;    if (! fso.FileExists(blogFilePath))        return;    var uniMode = (true == useUnicode) ? -1 : 0;    var blogFile;    // temporary loop for detect place of the problem:    // runall.wsf(59, 6) Microsoft JScript runtime error: Permission denied    for (var i = 0; i < 5 && "undefined" == typeof(blogFile); ++i)    {        try        {            blogFile = fso.OpenTextFile(blogFilePath, 1, false, uniMode);        }        catch (e)        {            // file may be locked, waiting            WScript.Echo("File " + blogFilePath + " is locked, waiting for a 1 second");            WScript.Sleep(1000);        }    }    if ("undefined" == typeof(blogFile))    {        WScript.Echo("Cannot open file: " + blogFilePath);        return;    }    var blogData = blogFile.ReadAll();        var posTmp = getCommandLinesInfo(itemInfo, blogData, 0);    posTmp = getCompilationInfo(itemInfo, blogData, posTmp);    posTmp = getBuildSummaryInfo(itemInfo, blogData, posTmp);}
meta: 3331	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3331/f9980f00adc56b09a372b1f1dc72589004ebb275/summary.js/buggy/etc/config/windows/summary.js