Ignore:
Timestamp:
May 7, 2009, 1:17:55 PM (16 years ago)
Author:
Darin Adler
Message:

2009-05-07 Darin Adler <Darin Adler>

Reviewed by Geoff Garen.

  • parser/Lexer.cpp: (JSC::Lexer::lex): Fix missing braces. This would make us always take the slower case for string parsing and Visual Studio correctly noticed unreachable code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/parser/Lexer.cpp

    r43358 r43361  
    576576        // Catches -1, \n, \r, \, 0x2028, and 0x2029 as efficiently
    577577        // as possible, and lets through all common ASCII characters.
    578         if (UNLIKELY(m_current == '\\') || UNLIKELY(((static_cast<unsigned>(m_current) - 0xE) & 0x2000)))
     578        if (UNLIKELY(m_current == '\\') || UNLIKELY(((static_cast<unsigned>(m_current) - 0xE) & 0x2000))) {
    579579            m_buffer16.append(stringStart, currentCharacter() - stringStart);
    580580            goto inString;
     581        }
    581582        shift1();
    582583    }
Note: See TracChangeset for help on using the changeset viewer.