Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/scanner/token.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/scanner/token.dart b/sdk/lib/_internal/compiler/implementation/scanner/token.dart |
| index 901202139bcdf4c3205b7c3b2e56229eef259021..28ba95f6180f7fabbcddeadb144e74e1a974ea6b 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/scanner/token.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/scanner/token.dart |
| @@ -246,7 +246,11 @@ class StringCodeIterator implements Iterator<int> { |
| } |
| bool get hasNext => index < end; |
| - int next() => string.charCodeAt(index++); |
| + int next() { |
|
floitsch
2012/11/08 15:28:21
maybe add TODO to switch to charcode-iterator once
erikcorry
2012/11/15 13:28:25
Done.
|
| + int charCode = string.charCodeAt(index++); |
| + if (charCode >= 0x10000) index++; // Skip trail surrogate. |
| + return charCode; |
| + } |
| } |
| class BeginGroupToken extends StringToken { |