context: function testIsXMLName(buffer){    var nl       = "\n";    var result   = '';    var length   = buffer.length;    var rangestart = null;    var rangeend   = null;    var rangemessage = '';    for (var i = 0; i < length; i++)    {        var message = '';        var c       = String.fromCharCode(i);        var marker  = buffer[i];        var namestart = isXMLName(c + 'x');        var nameother = isXMLName('x' + c);          if (marker == 0 && namestart)        {            message += ': Invalid char accepted as start ';        }        if (marker == 0 && nameother)        {            message += ': Invalid Char accepted as other ';        }        if ((marker & START) && !namestart)        {            message += ': Start char not accepted';        }        if ((marker & OTHER) && !nameother)        {            message += ': Other char not accepted';        }        if (rangemessage && !message)        {            // no current error, previous error            // output previous error range            result += '[' + rangestart + '-' + rangeend + '] ' +                rangemessage + nl;            rangemessage = rangestart = rangeend = null;        }        else if (!rangemessage && message)        {            // current error, no previous error            // start new error range            rangemessage = message;            rangestart = rangeend = formatChar(c);        }        else if (rangemessage && message)        {            if (rangemessage == message)            {                // current error same as previous                // continue previous error range                rangeend = formatChar(c);            }            else            {                // different error, output range                result += '[' + rangestart + '-' + rangeend + '] ' +                    rangemessage + nl;                rangemessage = message;                rangestart = rangeend = formatChar(c);            }        }    }    if (rangemessage)    {        result += '[' + rangestart + '-' + rangeend + '] ' +            rangemessage + nl;    }    return result;}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/0b675418ba636127763e94e614e62364d6caa659/13.1.2.1.js/buggy/js/tests/e4x/Global/13.1.2.1.js