Changeset 278185 in webkit for trunk/Source/JavaScriptCore/parser/Lexer.cpp
- Timestamp:
- May 27, 2021, 6:26:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Lexer.cpp
r272570 r278185 1540 1540 if (m_current == '_') { 1541 1541 if (UNLIKELY(!isASCIIHexDigit(peek(1)))) 1542 return WTF::nullopt;1542 return std::nullopt; 1543 1543 1544 1544 shift(); … … 1567 1567 if (m_current == '_') { 1568 1568 if (UNLIKELY(!isASCIIHexDigit(peek(1)))) 1569 return WTF::nullopt;1569 return std::nullopt; 1570 1570 1571 1571 shift(); … … 1598 1598 if (m_current == '_') { 1599 1599 if (UNLIKELY(!isASCIIBinaryDigit(peek(1)))) 1600 return WTF::nullopt;1600 return std::nullopt; 1601 1601 1602 1602 shift(); … … 1618 1618 if (m_current == '_') { 1619 1619 if (UNLIKELY(!isASCIIBinaryDigit(peek(1)))) 1620 return WTF::nullopt;1620 return std::nullopt; 1621 1621 1622 1622 shift(); … … 1631 1631 1632 1632 if (isASCIIDigit(m_current)) 1633 return WTF::nullopt;1633 return std::nullopt; 1634 1634 1635 1635 return NumberParseResult { parseIntOverflow(m_buffer8.data(), m_buffer8.size(), 2) }; … … 1654 1654 if (m_current == '_') { 1655 1655 if (UNLIKELY(!isASCIIOctalDigit(peek(1)) || isLegacyLiteral)) 1656 return WTF::nullopt;1656 return std::nullopt; 1657 1657 1658 1658 shift(); … … 1674 1674 if (m_current == '_') { 1675 1675 if (UNLIKELY(!isASCIIOctalDigit(peek(1)) || isLegacyLiteral)) 1676 return WTF::nullopt;1676 return std::nullopt; 1677 1677 1678 1678 shift(); … … 1687 1687 1688 1688 if (isASCIIDigit(m_current)) 1689 return WTF::nullopt;1689 return std::nullopt; 1690 1690 1691 1691 return NumberParseResult { parseIntOverflow(m_buffer8.data(), m_buffer8.size(), 8) }; … … 1713 1713 if (m_current == '_') { 1714 1714 if (UNLIKELY(!isASCIIDigit(peek(1)) || isLegacyLiteral)) 1715 return WTF::nullopt;1715 return std::nullopt; 1716 1716 1717 1717 shift(); … … 1734 1734 if (m_current == '_') { 1735 1735 if (UNLIKELY(!isASCIIDigit(peek(1)) || isLegacyLiteral)) 1736 return WTF::nullopt;1736 return std::nullopt; 1737 1737 1738 1738 shift(); … … 1746 1746 return NumberParseResult { makeIdentifier(m_buffer8.data(), m_buffer8.size()) }; 1747 1747 1748 return WTF::nullopt;1748 return std::nullopt; 1749 1749 } 1750 1750
Note:
See TracChangeset
for help on using the changeset viewer.