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

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

Issue 14049034: Revert "Revert "Fix x.runtimeType for native classes"" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months 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/core_patch.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
index 38adaf198ea63fc8bf506de415f8218c55343424..934044a9a490278e2596090b860156a4d97f6053 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
@@ -5,11 +5,10 @@
// Patch file for dart:core classes.
import 'dart:_interceptors';
import 'dart:_js_helper' show checkNull,
- getRuntimeTypeString,
+ getRuntimeType,
isJsArray,
JSSyntaxRegExp,
Primitives,
- TypeImpl,
stringJoinUnchecked;
import "dart:_collection-dev" as _symbol_dev;
@@ -41,10 +40,7 @@ patch class Object {
_symbolMapToStringMap(invocation.namedArguments));
}
- patch Type get runtimeType {
- String type = getRuntimeTypeString(this);
- return new TypeImpl(type);
- }
+ patch Type get runtimeType => getRuntimeType(this);
}
// Patch for Function implementation.

Powered by Google App Engine
This is Rietveld 408576698