Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 557e24d1cb25531d2803c31f2bac394f9f7eef91..fd9c267dd0d84576a4ffa3ad97682d5ca8dee0c8 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -13637,6 +13637,10 @@ intptr_t Instance::ElementSizeFor(intptr_t cid) { |
return OneByteString::kBytesPerElement; |
case kTwoByteStringCid: |
return TwoByteString::kBytesPerElement; |
+ case kExternalOneByteStringCid: |
+ return ExternalOneByteString::kBytesPerElement; |
+ case kExternalTwoByteStringCid: |
+ return ExternalTwoByteString::kBytesPerElement; |
default: |
UNIMPLEMENTED(); |
return 0; |