Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/interceptors.dart

Issue 11348207: Fix runtimeType for List and bool. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add a test. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/lib/js_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/lib/interceptors.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/interceptors.dart b/sdk/lib/_internal/compiler/implementation/lib/interceptors.dart
index f3b32a5d41a42ad04cc903dd06403ff68339ebcf..c87e763719e1a02b33c329ba71e2ec21115bc090 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/interceptors.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/interceptors.dart
@@ -56,26 +56,7 @@ class JSBool implements bool {
// positions, including the low bit, so they are different mod 2^k.
int get hashCode => this ? (2 * 3 * 23 * 3761) : (269 * 811);
- Type get runtimeType => createRuntimeType('bool');
-}
-
-get$runtimeType(receiver) {
- if (receiver is int) {
- return int;
- } else if (receiver is String) {
- return String;
- } else if (receiver is double) {
- return double;
- } else if (receiver is bool) {
- return bool;
- } else if (receiver == null) {
- return createRuntimeType('Null');
- } else if (isJsArray(receiver)) {
- // Call getRuntimeTypeString to get the name including type arguments.
- return createRuntimeType(getRuntimeTypeString(receiver));
- } else {
- return UNINTERCEPTED(receiver.runtimeType);
- }
+ Type get runtimeType => bool;
}
/**
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/lib/js_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698