| Index: runtime/vm/dart_api_message.cc
|
| diff --git a/runtime/vm/dart_api_message.cc b/runtime/vm/dart_api_message.cc
|
| index 6958098afc83ce69824e8c84de496b3a09ab158a..7141a82a3df18eafdd95a3ef56f6920c04b1dc34 100644
|
| --- a/runtime/vm/dart_api_message.cc
|
| +++ b/runtime/vm/dart_api_message.cc
|
| @@ -767,7 +767,7 @@ bool ApiMessageWriter::WriteCObjectInlined(Dart_CObject* object,
|
| }
|
|
|
| Utf8::Type type;
|
| - intptr_t len = Utf8::CodePointCount(utf8_str, utf8_len, &type);
|
| + intptr_t len = Utf8::CodeUnitCount(utf8_str, utf8_len, &type);
|
|
|
| // Write out the serialization header value for this object.
|
| WriteInlinedHeader(object);
|
|
|