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

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

Issue 11360228: Simplify runtime type support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: sdk/lib/_internal/compiler/implementation/lib/js_string.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_string.dart b/sdk/lib/_internal/compiler/implementation/lib/js_string.dart
index a87c6116302843abcc182ec05127a313a0649b8c..8305dfa6b5e8b7bad8f66b7b29c3c67aa087e78c 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/js_string.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/js_string.dart
@@ -153,7 +153,7 @@ class JSString implements String {
return 0x1fffffff & (hash + (0x00003fff & hash) << 15);
}
- Type get runtimeType => createRuntimeType('String');
+ Type get runtimeType => String;
int get length => JS('int', r'#.length', this);
}

Powered by Google App Engine
This is Rietveld 408576698