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

Unified Diff: lib/runtime/dart_sdk.js

Issue 1920743003: small cleanup in dart:_runtime (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 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:
Download patch
« no previous file with comments | « no previous file | test/codegen/expect/language-all.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart_sdk.js
diff --git a/lib/runtime/dart_sdk.js b/lib/runtime/dart_sdk.js
index 3a33f39518d8144d2ced401cb3c83052fe40bc72..e6429601b0f36c8e624e18603ec56deb098b49b9 100644
--- a/lib/runtime/dart_sdk.js
+++ b/lib/runtime/dart_sdk.js
@@ -748,13 +748,6 @@ dart_library.library('dart_sdk', null, /* Imports */[
}
return result;
};
- dart.LazyTagged = function(infoFn) {
- return class _Tagged {
- get [dart._runtimeType]() {
- return infoFn();
- }
- };
- };
dart.read = function(value) {
return value[dart._runtimeType];
};
@@ -777,11 +770,13 @@ dart_library.library('dart_sdk', null, /* Imports */[
dart._mixins = Symbol("mixins");
dart.implements = Symbol("implements");
dart.metadata = Symbol("metadata");
- dart._TypeRepBase = dart.LazyTagged(() => core.Type);
- dart.TypeRep = class TypeRep extends dart._TypeRepBase {
+ dart.TypeRep = class TypeRep {
get name() {
return this.toString();
}
+ get [dart._runtimeType]() {
+ return core.Type;
+ }
};
dart.Dynamic = class Dynamic extends dart.TypeRep {
toString() {
« no previous file with comments | « no previous file | test/codegen/expect/language-all.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698