Index: sdk/lib/_internal/compiler/implementation/lib/interceptors.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/lib/interceptors.dart (revision 15190) |
+++ sdk/lib/_internal/compiler/implementation/lib/interceptors.dart (working copy) |
@@ -34,26 +34,6 @@ |
return const ObjectInterceptor(); |
} |
-get$length(var receiver) { |
- if (receiver is String || isJsArray(receiver)) { |
- return JS('num', r'#.length', receiver); // TODO(sra): Use 'int'? |
- } else { |
- return UNINTERCEPTED(receiver.length); |
- } |
-} |
- |
-set$length(receiver, newLength) { |
- if (isJsArray(receiver)) { |
- if (newLength is !int) throw new ArgumentError(newLength); |
- if (newLength < 0) throw new RangeError.value(newLength); |
- checkGrowable(receiver, 'set length'); |
- JS('void', r'#.length = #', receiver, newLength); |
- } else { |
- UNINTERCEPTED(receiver.length = newLength); |
- } |
- return newLength; |
-} |
- |
/** |
* The interceptor class for tear-off static methods. Unlike |
* tear-off instance methods, tear-off static methods are just the JS |