Chromium Code Reviews| Index: src/objects.cc |
| diff --git a/src/objects.cc b/src/objects.cc |
| index aa7f500c8a36198355b85b37a4ae11484f87a15f..2ff48c5ce1f58c0b294cf09f4bd8c8675eaa5da9 100644 |
| --- a/src/objects.cc |
| +++ b/src/objects.cc |
| @@ -8312,8 +8312,10 @@ SmartArrayPointer<char> String::ToCString(AllowNullsFlag allow_nulls, |
| if (allow_nulls == DISALLOW_NULLS && character == 0) { |
| character = ' '; |
| } |
| - utf8_byte_position += |
| - unibrow::Utf8::Encode(result + utf8_byte_position, character, last); |
| + utf8_byte_position += unibrow::Utf8::Encode(result + utf8_byte_position, |
| + character, |
| + last, |
| + true); |
| last = character; |
| } |
| result[utf8_byte_position] = 0; |