| Index: sdk/lib/_internal/compiler/implementation/lib/interceptors.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/lib/interceptors.dart (revision 14875)
|
| +++ sdk/lib/_internal/compiler/implementation/lib/interceptors.dart (working copy)
|
| @@ -21,6 +21,14 @@
|
| if (index >= length) throw new RangeError.value(index);
|
| return JS('int', r'#.charCodeAt(#)', this, index);
|
| }
|
| +
|
| + List<int> get charCodes {
|
| + List<int> result = new List<int>(length);
|
| + for (int i = 0; i < length; i++) {
|
| + result[i] = charCodeAt(i);
|
| + }
|
| + return result;
|
| + }
|
| }
|
|
|
| /**
|
| @@ -670,16 +678,6 @@
|
| return 0x1fffffff & (hash + (0x00003fff & hash) << 15);
|
| }
|
|
|
| -get$charCodes(receiver) {
|
| - if (receiver is !String) return UNINTERCEPTED(receiver.charCodes);
|
| - int len = receiver.length;
|
| - List<int> result = new List<int>(len);
|
| - for (int i = 0; i < len; i++) {
|
| - result[i] = receiver.charCodeAt(i);
|
| - }
|
| - return result;
|
| -}
|
| -
|
| get$isEven(receiver) {
|
| if (receiver is !int) return UNINTERCEPTED(receiver.isEven);
|
| return (receiver & 1) == 0;
|
|
|