Index: utils/template/codegen.dart |
diff --git a/utils/template/codegen.dart b/utils/template/codegen.dart |
index 6f566a6db14d9a020bd9b986586f0e8fe85d064e..5d8ed2f944e63e51a7e02e8d9af275faca8005b2 100644 |
--- a/utils/template/codegen.dart |
+++ b/utils/template/codegen.dart |
@@ -757,7 +757,7 @@ Nested #each or #with must have a localName; |
bool identifier = true; |
if (m.start > 0) { |
- int charCode = expr.charCodeAt(m.start - 1); |
+ int charCode = expr.codeUnitAt(m.start - 1); |
// Starts with ' or " then it's not an identifier. |
identifier = charCode != 34 /* " */ && charCode != 39 /* ' */; |
} |