Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1165)

Unified Diff: runtime/vm/scopes.cc

Issue 11368138: Add some support for the code-point code-unit distinction. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) == ':';
}

Powered by Google App Engine
This is Rietveld 408576698