Bug 1506298 - When tokenizing a string containing an escape sequence consisting of U+005C REVERSE SOLIDUS followed by a literal multi-unit code point, properly interpret the whole sequence as representing that multi-unit code point -- not as representing the first code unit of that sequence. #oops r=jorendorff

--HG--
extra : rebase_source : 19b8f7ee65ce05da38e9374d8716fb9979653369
This commit is contained in:
Jeff Walden 2018-11-10 20:18:09 -08:00
Родитель 3e879986fc
Коммит d17b76a4c3
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -3188,7 +3188,7 @@ TokenStreamSpecific<Unit, AnyCharsAccess>::getStringOrTemplateToken(char untilCh
// LineContinuation represents no code points, so don't append
// in this case.
if (codePoint != '\n') {
if (!this->charBuffer.append(unit)) {
if (!appendCodePointToCharBuffer(AssertedCast<char32_t>(codePoint))) {
return false;
}
}