Index: runtime/vm/scopes.cc |
diff --git a/runtime/vm/scopes.cc b/runtime/vm/scopes.cc |
index 27b1ef81a7f72b34c37211d2608cc9014e6485a6..e7856aba52edb11b9532586d9070e6284245d110 100644 |
--- a/runtime/vm/scopes.cc |
+++ b/runtime/vm/scopes.cc |
@@ -214,7 +214,7 @@ RawLocalVarDescriptors* LocalScope::GetVarDescriptors(const Function& func) { |
// The parser creates internal variables that start with ":" |
static bool IsInternalIdentifier(const String& str) { |
ASSERT(str.Length() > 0); |
- return str.CharAt(0) == ':'; |
+ return str.CodeUnitAt(0) == ':'; |
} |