| Index: sdk/lib/_internal/compiler/implementation/string_validator.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/string_validator.dart b/sdk/lib/_internal/compiler/implementation/string_validator.dart
|
| index a5f15e218067e6b85a39ba45c28ced379726c840..81453082ec604553550970c5a31c191724e4468c 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/string_validator.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/string_validator.dart
|
| @@ -168,6 +168,8 @@ class StringValidator {
|
| code = value;
|
| }
|
| }
|
| + // TODO(erikcorry): Use the string code point iterator when available.
|
| + if (code >= String.SMP_CODE_POINT_BASE) ++length;;
|
| // This handles both unescaped characters and the value of unicode
|
| // escapes.
|
| if (!isUnicodeScalarValue(code)) {
|
|
|