| Index: runtime/lib/integers_patch.dart
|
| diff --git a/runtime/lib/integers_patch.dart b/runtime/lib/integers_patch.dart
|
| index c6485ab2d6020098e5e5efacdb960c1c2c16c56f..fdbd4f9bd2f28039fc3a338d8155e0008e9bccdb 100644
|
| --- a/runtime/lib/integers_patch.dart
|
| +++ b/runtime/lib/integers_patch.dart
|
| @@ -50,12 +50,12 @@ patch class int {
|
| ];
|
|
|
| int i = 0;
|
| - int code = source.charCodeAt(i);
|
| + int code = source.codeUnitAt(i);
|
| if (code == 0x2d || code == 0x2b) { // Starts with a plus or minus-sign.
|
| negative = (code == 0x2d);
|
| if (source.length == 1) return onError(source);
|
| i = 1;
|
| - code = source.charCodeAt(i);
|
| + code = source.codeUnitAt(i);
|
| }
|
| do {
|
| if (code < 0x30 || code > 0x7f) return onError(source);
|
| @@ -64,7 +64,7 @@ patch class int {
|
| result = result * radix + digit;
|
| i++;
|
| if (i == source.length) break;
|
| - code = source.charCodeAt(i);
|
| + code = source.codeUnitAt(i);
|
| } while (true);
|
| return negative ? -result : result;
|
| }
|
|
|