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

Unified Diff: pkg/compiler/lib/src/js_backend/backend_impact.dart

Issue 2707933002: Tests for `void`.
Patch Set: More tests. Created 3 years, 10 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: pkg/compiler/lib/src/js_backend/backend_impact.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend_impact.dart b/pkg/compiler/lib/src/js_backend/backend_impact.dart
index 0ba422fe3922074c1afedffcad203ddd933b2e40..c44a6d640004db2287e21b985aaa6905acfbcefe 100644
--- a/pkg/compiler/lib/src/js_backend/backend_impact.dart
+++ b/pkg/compiler/lib/src/js_backend/backend_impact.dart
@@ -613,6 +613,15 @@ class BackendImpacts {
]);
}
+ BackendImpact _objectClass;
+
+ // TODO(floitsch): this should probably be a `void` impact, and not on
+ // `Object`.
+ BackendImpact get objectClass {
+ return _objectClass ??=
+ new BackendImpact(globalClasses: [helpers.voidClass]);
+ }
+
BackendImpact _closureClass;
BackendImpact get closureClass {

Powered by Google App Engine
This is Rietveld 408576698