Changeset 203028 in webkit for trunk/Source/JavaScriptCore/parser/Lexer.cpp
- Timestamp:
- Jul 9, 2016, 12:33:28 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Lexer.cpp
r202768 r203028 1394 1394 shift(); 1395 1395 } else if (UNLIKELY(isLineTerminator(m_current))) { 1396 // Normalize <CR>, <CR><LF> to <LF>. 1396 1397 if (m_current == '\r') { 1398 if (shouldBuildStrings) { 1399 ASSERT_WITH_MESSAGE(rawStringStart != currentSourcePtr(), "We should have at least shifted the escape."); 1400 1401 if (rawStringsBuildMode == RawStringsBuildMode::BuildRawStrings) { 1402 m_bufferForRawTemplateString16.append(rawStringStart, currentSourcePtr() - rawStringStart); 1403 m_bufferForRawTemplateString16.append('\n'); 1404 } 1405 } 1406 1397 1407 lineNumberAdder.add(m_current); 1398 1408 shift(); … … 1401 1411 shift(); 1402 1412 } 1413 1414 rawStringStart = currentSourcePtr(); 1403 1415 } else { 1404 1416 lineNumberAdder.add(m_current);
Note:
See TracChangeset
for help on using the changeset viewer.